From cd73a4f24ab92ab6829b57a9ce75ab475b712a70 Mon Sep 17 00:00:00 2001 From: aiongg Date: Tue, 17 Nov 2026 09:31:27 +0000 Subject: [PATCH] Remove the DIAG prints --- crates/audio/tests/codecs/opus/oracle.rs | 8 -------- crates/imaging/src/ui/fill/mod.rs | 11 ----------- crates/ui-canvas/src/canvas/mod.rs | 4 ---- crates/ui-widgets/src/notices/notice.rs | 6 ------ 4 files changed, 29 deletions(-) diff --git a/crates/audio/tests/codecs/opus/oracle.rs b/crates/audio/tests/codecs/opus/oracle.rs index f6cf9b92a..8dbc5d609 100644 --- a/crates/audio/tests/codecs/opus/oracle.rs +++ b/crates/audio/tests/codecs/opus/oracle.rs @@ -93,14 +93,6 @@ fn run(case: &Case, rate: u32) -> (f64, f64, Vec) { // Our output is in Vorbis channel order; ffmpeg reorders 5.1 to FL FR FC LFE BL BR. let order: Vec = if case.channels == 6 { vec![0, 2, 1, 5, 3, 4] } else { (0..case.channels).collect() }; let ours: Vec = (0..total).flat_map(|i| order.iter().map(|&c| planar[c][i]).collect::>()).collect(); - if std::env::var("DIAG").is_ok_and(|v| v == case.name) { - let blk = 12000 * case.channels; - for (b, (r, o)) in reference.chunks(blk).zip(ours.chunks(blk)).enumerate() { - let er: f32 = r.iter().map(|v| v * v).sum(); - let eo: f32 = o.iter().map(|v| v * v).sum(); - eprintln!("{:5.2}s ref {:9.3e} ours {:9.3e} snr {:6.1}", b as f32 * 0.25, er, eo, common::snr_db(r, o)); - } - } assert_eq!( ours.len(), reference.len(), diff --git a/crates/imaging/src/ui/fill/mod.rs b/crates/imaging/src/ui/fill/mod.rs index b41bbe1e9..7653eea8d 100644 --- a/crates/imaging/src/ui/fill/mod.rs +++ b/crates/imaging/src/ui/fill/mod.rs @@ -651,17 +651,6 @@ impl ContentAwareFillWorkspace { self.apply_reset(FillReset::FillArea); } - { - let test = std::thread::current().name().unwrap_or("?").rsplit("::").next().unwrap_or("?").to_owned(); - if test.starts_with("an_erased_sampling") || test.starts_with("brush_strokes_change") { - eprintln!( - "DIAG {test}: fill body max_rect {:?} available {:?} measuring {}", - ui.max_rect(), - ui.available_size(), - craft_ui::runtime::measure::active(ui.ctx()) - ); - } - } Row::new().fill().show(ui, |ui, _| { let rail = ToolRail::new(words.tools.clone(), slots, &self.tool, &self.last_used).show_column(ui, |_, _| {}); if let Some(next) = rail.last_used { diff --git a/crates/ui-canvas/src/canvas/mod.rs b/crates/ui-canvas/src/canvas/mod.rs index 3bfe9b39e..5aa243703 100644 --- a/crates/ui-canvas/src/canvas/mod.rs +++ b/crates/ui-canvas/src/canvas/mod.rs @@ -388,10 +388,6 @@ impl<'a> Canvas<'a> { // As its body's scroll owner the canvas shows a control focus arrives at, and applies the page keys a focused // control leaves as its own. if let Some(by) = cx.take_reveal(area) { - eprintln!( - "DIAG command_drag_over_a_guide_moves_the_guide_with_any_tool: canvas {id:?} reveal by {by:?} in {area:?} egui focus {:?}", - ctx.memory(|memory| memory.focused()) - ); pan(&mut view, -by); jumped = true; } diff --git a/crates/ui-widgets/src/notices/notice.rs b/crates/ui-widgets/src/notices/notice.rs index 77ff16043..0cfb90755 100644 --- a/crates/ui-widgets/src/notices/notice.rs +++ b/crates/ui-widgets/src/notices/notice.rs @@ -563,12 +563,6 @@ impl Component for Notice<'_> { // the column's room: in a container that sets a line length, its paragraphs' wrap width. (_, None) => cx.column_room().map_or(natural, |column| natural.min(column)), }; - { - let test = std::thread::current().name().unwrap_or("?").rsplit("::").next().unwrap_or("?").to_owned(); - if test.starts_with("an_erased_sampling") || test.starts_with("brush_strokes_change") { - eprintln!("DIAG {test}: notice measure room {:?} column {:?} natural {natural} width {width}", cx.room, cx.column_room()); - } - } Vec2::new(width, self.plan(cx, &texts, self.wrap_width(cx, width)).height) }