remove unused fields instead, prompting more dead_code removal

This commit is contained in:
Skgland
2021-11-11 19:32:35 +01:00
parent 7bc4876071
commit 49e024bdd8
6 changed files with 3 additions and 16 deletions

View File

@@ -339,7 +339,6 @@ pub(crate) struct HCPrinter<'a, Outputter> {
state_stack: Vec<TokenOrRedirect>,
toplevel_spec: Option<DirectedOp>,
heap_locs: ReverseHeapVarDict,
_printed_vars: IndexSet<Addr>,
last_item_idx: usize,
cyclic_terms: IndexMap<Addr, usize>,
non_cyclic_terms: IndexSet<usize>,
@@ -348,7 +347,6 @@ pub(crate) struct HCPrinter<'a, Outputter> {
pub(crate) numbervars: bool,
pub(crate) quoted: bool,
pub(crate) ignore_ops: bool,
pub(crate) _print_strings_as_strs: bool,
pub(crate) max_depth: usize,
}
@@ -466,7 +464,6 @@ impl<'a, Outputter: HCValueOutputter> HCPrinter<'a, Outputter> {
state_stack: vec![],
heap_locs: ReverseHeapVarDict::new(),
toplevel_spec: None,
_printed_vars: IndexSet::new(),
last_item_idx: 0,
numbervars: false,
numbervars_offset: Integer::from(0),
@@ -475,7 +472,6 @@ impl<'a, Outputter: HCValueOutputter> HCPrinter<'a, Outputter> {
cyclic_terms: IndexMap::new(),
non_cyclic_terms: IndexSet::new(),
var_names: IndexMap::new(),
_print_strings_as_strs: false,
max_depth: 0,
}
}