From 360856f321cbe52fb31555fd19748d9298cd8a55 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Sat, 9 May 2026 19:10:06 -0700 Subject: [PATCH] remove debug prints --- rust/pspp/src/spv/read/graph.rs | 4 +--- rust/pspp/src/spv/read/graph/format.rs | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/rust/pspp/src/spv/read/graph.rs b/rust/pspp/src/spv/read/graph.rs index 6f0b9d66e3..6d220de556 100644 --- a/rust/pspp/src/spv/read/graph.rs +++ b/rust/pspp/src/spv/read/graph.rs @@ -4485,9 +4485,7 @@ impl Scaling { // 1 => 0 // .1 => 1 // .01 => 2 - let result = (-log10).max(0) as usize; - dbg!(self, result); - result + (-log10).max(0) as usize } pub fn for_range(range: impl Borrow>) -> Scaling { diff --git a/rust/pspp/src/spv/read/graph/format.rs b/rust/pspp/src/spv/read/graph/format.rs index 02f8490fbe..3e5113dae2 100644 --- a/rust/pspp/src/spv/read/graph/format.rs +++ b/rust/pspp/src/spv/read/graph/format.rs @@ -320,7 +320,6 @@ impl NumberFormatter { fn format_scientific(&self, f: &mut std::fmt::Formatter, number: f64) -> std::fmt::Result { //let body = format!("{:.*E}", self.maximum_fraction_digits, number.abs()).to_small_string(); let body = format!("{:E}", number.abs()).to_small_string(); - dbg!(&body); let pn = ParsedNumber::from_scientific(body).unwrap(); let pn = if let Some(maximum_fraction_digits) = self.maximum_fraction_digits && pn.fraction.len() > maximum_fraction_digits @@ -339,7 +338,6 @@ impl NumberFormatter { fn format_decimal(&self, f: &mut std::fmt::Formatter, number: f64) -> std::fmt::Result { let body = number.abs().to_small_string(); - dbg!(number, &body); let pn = ParsedNumber::from_decimal(body).unwrap(); let body; let pn = if let Some(maximum_fraction_digits) = self.maximum_fraction_digits @@ -813,7 +811,7 @@ impl ParsedNumber { } fn from_scientific(s: SmallString<[u8; 32]>) -> Result { - let this = dbg!(Self::new(s)); + let this = Self::new(s); if this.exponent.is_some() { Ok(this) } else { -- 2.47.3