Clean up unused struct

This commit is contained in:
Patrick Lühne 2020-05-19 13:01:04 +02:00
parent d88ac89b01
commit efa5656e39
Signed by: patrick
GPG Key ID: 05F3611E97A70ABF

View File

@ -10,14 +10,6 @@ pub enum SectionKind
Assertions,
}
impl SectionKind
{
pub fn display_capitalized(&self) -> SectionKindCapitalizedDisplay
{
SectionKindCapitalizedDisplay(*self)
}
}
impl std::fmt::Debug for SectionKind
{
fn fmt(&self, formatter: &mut std::fmt::Formatter) -> std::fmt::Result
@ -41,29 +33,3 @@ impl std::fmt::Display for SectionKind
write!(formatter, "{:?}", self)
}
}
pub struct SectionKindCapitalizedDisplay(SectionKind);
impl std::fmt::Debug for SectionKindCapitalizedDisplay
{
fn fmt(&self, formatter: &mut std::fmt::Formatter) -> std::fmt::Result
{
match self.0
{
SectionKind::CompletedDefinitions => write!(formatter, "Completed definition"),
SectionKind::IntegrityConstraints => write!(formatter, "Integrity constraint"),
SectionKind::Axioms => write!(formatter, "Axiom"),
SectionKind::Assumptions => write!(formatter, "Assumption"),
SectionKind::Lemmas => write!(formatter, "Lemma"),
SectionKind::Assertions => write!(formatter, "Assertion"),
}
}
}
impl std::fmt::Display for SectionKindCapitalizedDisplay
{
fn fmt(&self, formatter: &mut std::fmt::Formatter) -> std::fmt::Result
{
write!(formatter, "{:?}", self)
}
}