Clean up unused struct
This commit is contained in:
parent
efa5656e39
commit
efe354faad
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user