clean up heap_print.rs
This commit is contained in:
@@ -447,20 +447,16 @@ impl<'a, Outputter: HCValueOutputter> HCPrinter<'a, Outputter>
|
|||||||
|
|
||||||
fn format_clause(&mut self, iter: &mut HCPreOrderIterator, arity: usize, ct: ClauseType)
|
fn format_clause(&mut self, iter: &mut HCPreOrderIterator, arity: usize, ct: ClauseType)
|
||||||
{
|
{
|
||||||
if let Some(spec) = ct.spec() {
|
|
||||||
if self.numbervars && is_numbered_var(&ct, arity) {
|
if self.numbervars && is_numbered_var(&ct, arity) {
|
||||||
if self.format_numbered_vars(iter) {
|
if self.format_numbered_vars(iter) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if let Some(spec) = ct.spec() {
|
||||||
if !self.ignore_ops {
|
if !self.ignore_ops {
|
||||||
return self.enqueue_op(ct, spec);
|
return self.enqueue_op(ct, spec);
|
||||||
}
|
}
|
||||||
} else if self.numbervars && is_numbered_var(&ct, arity) {
|
|
||||||
if self.format_numbered_vars(iter) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
match (ct.name().as_str(), arity) {
|
match (ct.name().as_str(), arity) {
|
||||||
@@ -541,7 +537,6 @@ impl<'a, Outputter: HCValueOutputter> HCPrinter<'a, Outputter>
|
|||||||
push_space_if_amb!(self, atom.as_str(), {
|
push_space_if_amb!(self, atom.as_str(), {
|
||||||
match atom.as_str() {
|
match atom.as_str() {
|
||||||
"" => self.append_str("''"),
|
"" => self.append_str("''"),
|
||||||
//"," => self.append_str("(,)"),
|
|
||||||
s => self.print_op_addendum(s)
|
s => self.print_op_addendum(s)
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user