diff --git a/src/main.rs b/src/main.rs index ce711aa..1771c7f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -4,7 +4,7 @@ mod engines; use gtk4::prelude::*; use crate::ui::window::build_ui; -use tracing::{debug, info, error}; +use tracing::info; #[tokio::main] async fn main() { diff --git a/src/ui/window.rs b/src/ui/window.rs index dccdc2d..65abb96 100644 --- a/src/ui/window.rs +++ b/src/ui/window.rs @@ -471,15 +471,6 @@ impl AppWindow { }); } - fn count_pages_with_prefix(notebook: >k4::Notebook, prefix: &str) -> u32 { - let mut count = 0; - for i in 0..notebook.n_pages() { - if let Some(p) = notebook.nth_page(Some(i)) - && p.widget_name().starts_with(prefix) { count += 1; } - } - count - } - fn get_insert_position(notebook: >k4::Notebook) -> u32 { for i in 0..notebook.n_pages() { if let Some(c) = notebook.nth_page(Some(i))