]> pintos-os.org Git - pspp/commitdiff
remove debug prints
authorBen Pfaff <blp@cs.stanford.edu>
Sun, 10 May 2026 02:10:06 +0000 (19:10 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Sun, 10 May 2026 02:10:06 +0000 (19:10 -0700)
rust/pspp/src/spv/read/graph.rs
rust/pspp/src/spv/read/graph/format.rs

index 6f0b9d66e38524e7cdb6891be227333f046cfd0a..6d220de556768100c72f7271fc0491974db6e36f 100644 (file)
@@ -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<Range<f64>>) -> Scaling {
index 02f8490fbe1244ec0f8c7c5e32acc88522013d37..3e5113dae2e6c68baf2d24f664a5294ceb812010 100644 (file)
@@ -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<Self, ()> {
-        let this = dbg!(Self::new(s));
+        let this = Self::new(s);
         if this.exponent.is_some() {
             Ok(this)
         } else {