From f77802d6aac610645da6f05324839d5e7ced2ed9 Mon Sep 17 00:00:00 2001 From: arty Date: Thu, 2 Nov 2023 11:54:05 -0700 Subject: [PATCH] ungate this feature --- src/classic/clvm_tools/cmds.rs | 2 -- src/compiler/cldb.rs | 11 ----------- 2 files changed, 13 deletions(-) diff --git a/src/classic/clvm_tools/cmds.rs b/src/classic/clvm_tools/cmds.rs index 09eb1f86..817026fc 100644 --- a/src/classic/clvm_tools/cmds.rs +++ b/src/classic/clvm_tools/cmds.rs @@ -531,7 +531,6 @@ pub fn cldb(args: &[String]) { .set_type(Rc::new(PathOrCodeConv {})) .set_help("path to symbol file".to_string()), ); - #[cfg(feature = "debug-print")] parser.add_argument( vec!["-p".to_string(), "--only-print".to_string()], Argument::new() @@ -747,7 +746,6 @@ pub fn cldb(args: &[String]) { output.push(cvt_subtree); }; - #[cfg(feature = "debug-print")] cldbrun.set_print_only(only_print); loop { diff --git a/src/compiler/cldb.rs b/src/compiler/cldb.rs index ba193d3a..d8bb942c 100644 --- a/src/compiler/cldb.rs +++ b/src/compiler/cldb.rs @@ -21,11 +21,9 @@ use crate::compiler::clvm::{convert_from_clvm_rs, run_step, RunStep}; use crate::compiler::runtypes::RunFailure; use crate::compiler::sexp::SExp; use crate::compiler::srcloc::Srcloc; -#[cfg(feature = "debug-print")] use crate::util::u8_from_number; use crate::util::Number; -#[cfg(feature = "debug-print")] fn print_atom() -> SExp { SExp::Atom(Srcloc::start("*print*"), b"$print$".to_vec()) } @@ -115,7 +113,6 @@ pub struct CldbRun { outputs_to_step: HashMap, } -#[cfg(feature = "debug-print")] fn humanize(a: Rc) -> Rc { match a.borrow() { SExp::Integer(l, i) => { @@ -136,7 +133,6 @@ fn humanize(a: Rc) -> Rc { } } -#[cfg(feature = "debug-print")] fn is_print_request(a: &SExp) -> Option<(Srcloc, Rc)> { if let SExp::Cons(l, f, r) = a { if &print_atom() == f.borrow() { @@ -185,16 +181,10 @@ impl CldbRun { self.final_result.clone() } - #[cfg(feature = "debug-print")] pub fn should_print_basic_output(&self) -> bool { !self.print_only } - #[cfg(not(feature = "debug-print"))] - pub fn should_print_basic_output(&self) -> bool { - true - } - pub fn step(&mut self, allocator: &mut Allocator) -> Option> { let mut produce_result = false; let mut result = BTreeMap::new(); @@ -265,7 +255,6 @@ impl CldbRun { let args = format_arg_inputs(&arg_associations); self.to_print.insert("Argument-Refs".to_string(), args); } else if v == 34_u32.to_bigint().unwrap() { - #[cfg(feature = "debug-print")] // Handle diagnostic output. if let Some((loc, outputs)) = is_print_request(a) { self.to_print