Remove the DIAG prints

This commit is contained in:
aiongg
2026-11-17 09:35:16 +00:00
parent 15d73ac5fc
commit cd73a4f24a
4 changed files with 0 additions and 29 deletions
-8
View File
@@ -93,14 +93,6 @@ fn run(case: &Case, rate: u32) -> (f64, f64, Vec<Mode>) {
// Our output is in Vorbis channel order; ffmpeg reorders 5.1 to FL FR FC LFE BL BR.
let order: Vec<usize> = if case.channels == 6 { vec![0, 2, 1, 5, 3, 4] } else { (0..case.channels).collect() };
let ours: Vec<f32> = (0..total).flat_map(|i| order.iter().map(|&c| planar[c][i]).collect::<Vec<_>>()).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(),
-11
View File
@@ -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 {
-4
View File
@@ -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;
}
-6
View File
@@ -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)
}