From f793ac7f3eb2439908555f670dcb616bbcbf1082 Mon Sep 17 00:00:00 2001 From: Emil Ernerfeldt Date: Sun, 28 Feb 2021 20:11:21 +0100 Subject: [PATCH] [demo] Remove dead code --- egui_demo_lib/src/apps/demo/demo_windows.rs | 2 -- egui_demo_lib/src/apps/demo/widgets.rs | 2 -- 2 files changed, 4 deletions(-) diff --git a/egui_demo_lib/src/apps/demo/demo_windows.rs b/egui_demo_lib/src/apps/demo/demo_windows.rs index ce57fef8..6883510d 100644 --- a/egui_demo_lib/src/apps/demo/demo_windows.rs +++ b/egui_demo_lib/src/apps/demo/demo_windows.rs @@ -83,8 +83,6 @@ fn set_open(open: &mut BTreeSet, key: &'static str, is_open: bool) { pub struct DemoWindows { open_windows: OpenWindows, - demo_window: super::DemoWindow, - /// open, title, view demos: Demos, } diff --git a/egui_demo_lib/src/apps/demo/widgets.rs b/egui_demo_lib/src/apps/demo/widgets.rs index 8c1773b2..8b2bc65f 100644 --- a/egui_demo_lib/src/apps/demo/widgets.rs +++ b/egui_demo_lib/src/apps/demo/widgets.rs @@ -24,7 +24,6 @@ pub struct Widgets { color: Color32, single_line_text_input: String, multiline_text_input: String, - toggle_switch: bool, } impl Default for Widgets { @@ -37,7 +36,6 @@ impl Default for Widgets { color: (Rgba::from_rgb(0.0, 1.0, 0.5) * 0.75).into(), single_line_text_input: "Hello World!".to_owned(), multiline_text_input: "Text can both be so wide that it needs a line break, but you can also add manual line break by pressing enter, creating new paragraphs.\nThis is the start of the next paragraph.\n\nClick me to edit me!".to_owned(), - toggle_switch: false, } } }