Skip to content

Commit

Permalink
ungate this feature
Browse files Browse the repository at this point in the history
  • Loading branch information
prozacchiwawa committed Nov 2, 2023
1 parent b75ac4e commit f77802d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
2 changes: 0 additions & 2 deletions src/classic/clvm_tools/cmds.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -747,7 +746,6 @@ pub fn cldb(args: &[String]) {
output.push(cvt_subtree);
};

#[cfg(feature = "debug-print")]
cldbrun.set_print_only(only_print);

loop {
Expand Down
11 changes: 0 additions & 11 deletions src/compiler/cldb.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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())
}
Expand Down Expand Up @@ -115,7 +113,6 @@ pub struct CldbRun {
outputs_to_step: HashMap<Number, PriorResult>,
}

#[cfg(feature = "debug-print")]
fn humanize(a: Rc<SExp>) -> Rc<SExp> {
match a.borrow() {
SExp::Integer(l, i) => {
Expand All @@ -136,7 +133,6 @@ fn humanize(a: Rc<SExp>) -> Rc<SExp> {
}
}

#[cfg(feature = "debug-print")]
fn is_print_request(a: &SExp) -> Option<(Srcloc, Rc<SExp>)> {
if let SExp::Cons(l, f, r) = a {
if &print_atom() == f.borrow() {
Expand Down Expand Up @@ -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<BTreeMap<String, String>> {
let mut produce_result = false;
let mut result = BTreeMap::new();
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit f77802d

Please sign in to comment.