Clean up unused struct

This commit is contained in:
Patrick Lühne 2020-05-19 13:02:12 +02:00
parent efa5656e39
commit efe354faad
Signed by: patrick
GPG Key ID: 05F3611E97A70ABF
1 changed files with 0 additions and 35 deletions

View File

@ -11,14 +11,6 @@ pub(crate) enum StatementKind
Assertion,
}
impl StatementKind
{
pub fn display_capitalized(&self) -> StatementKindCapitalizedDisplay
{
StatementKindCapitalizedDisplay(self)
}
}
impl std::fmt::Debug for StatementKind
{
fn fmt(&self, formatter: &mut std::fmt::Formatter) -> std::fmt::Result
@ -44,33 +36,6 @@ impl std::fmt::Display for StatementKind
}
}
pub(crate) struct StatementKindCapitalizedDisplay<'s>(&'s StatementKind);
impl<'s> std::fmt::Debug for StatementKindCapitalizedDisplay<'s>
{
fn fmt(&self, formatter: &mut std::fmt::Formatter) -> std::fmt::Result
{
match self.0
{
StatementKind::Axiom => write!(formatter, "Axiom"),
StatementKind::Assumption => write!(formatter, "Assumption"),
StatementKind::CompletedDefinition(ref predicate_declaration) =>
write!(formatter, "Completed definition of {}", predicate_declaration),
StatementKind::IntegrityConstraint => write!(formatter, "Integrity constraint"),
StatementKind::Lemma(_) => write!(formatter, "Lemma"),
StatementKind::Assertion => write!(formatter, "Assertion"),
}
}
}
impl<'s> std::fmt::Display for StatementKindCapitalizedDisplay<'s>
{
fn fmt(&self, formatter: &mut std::fmt::Formatter) -> std::fmt::Result
{
write!(formatter, "{:?}", self)
}
}
#[derive(Copy, Clone, Eq, PartialEq)]
pub(crate) enum ProofStatus
{