Skip to content

Commit 337eeaa

Browse files
committed
remove unused code
1 parent f6522b4 commit 337eeaa

File tree

1 file changed

+0
-28
lines changed

1 file changed

+0
-28
lines changed

src/gui.rs

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -772,40 +772,12 @@ impl MyApp {
772772
}
773773
});
774774

775-
// if let Ok(read_guard) = self.print_lock.read() {
776-
// self.console = read_guard.clone();
777-
// }
778-
// let num_rows = self.console.len();
779-
// let row_height = ui.text_style_height(&egui::TextStyle::Body);
780-
781775
ui.add_space(20.0);
782776
ui.separator();
783777
ui.label("Debug Info:");
784778
ui.add_space(5.0);
785779

786780
egui_logger::logger_ui().show(ui);
787-
788-
// egui::ScrollArea::vertical()
789-
// .id_salt("console_scroll_area")
790-
// .auto_shrink([false; 2])
791-
// .stick_to_bottom(true)
792-
// .max_height(row_height * 15.5)
793-
// .show_rows(ui, row_height, num_rows, |ui, _row_range| {
794-
// let content: String = self
795-
// .console
796-
// .iter()
797-
// .flat_map(|row| row.scroll_area_message(&self.gui_conf))
798-
// .map(|msg| msg.label + msg.content.as_str())
799-
// .collect::<Vec<_>>()
800-
// .join("\n");
801-
// // we need to add it as one multiline object, such that we can select and copy
802-
// // text over multiple lines
803-
// ui.add(
804-
// egui::TextEdit::multiline(&mut content.as_str())
805-
// .font(DEFAULT_FONT_ID) // for cursor height
806-
// .lock_focus(true), // TODO: add a layouter to highlight the labels
807-
// );
808-
// });
809781
});
810782
}
811783

0 commit comments

Comments
 (0)