From a6f5906fbd20536f4d94f8d878dd756742a6ebe3 Mon Sep 17 00:00:00 2001 From: LoipesMas <46327403+LoipesMas@users.noreply.github.com> Date: Sat, 25 Sep 2021 21:57:54 +0200 Subject: [PATCH] Remove unnecessary code --- src/window/window_wrapper/mod.rs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/window/window_wrapper/mod.rs b/src/window/window_wrapper/mod.rs index f53e313..fe8a416 100644 --- a/src/window/window_wrapper/mod.rs +++ b/src/window/window_wrapper/mod.rs @@ -51,7 +51,6 @@ pub struct GlutinWindowWrapper { mouse_manager: MouseManager, title: String, fullscreen: bool, - transparency: f32, saved_inner_size: PhysicalSize, saved_grid_size: Option, ui_command_sender: LoggingTx, @@ -77,12 +76,6 @@ impl GlutinWindowWrapper { if self.fullscreen != fullscreen { self.toggle_fullscreen(); } - - let transparency = { SETTINGS.get::().transparency }; - if self.transparency != transparency { - //TODO: HERE REDRAW WINDOW - } - } #[allow(clippy::needless_collect)] @@ -317,7 +310,6 @@ pub fn create_window( mouse_manager: MouseManager::new(ui_command_sender.clone()), title: String::from("Neovide"), fullscreen: false, - transparency: 1.0, saved_inner_size, saved_grid_size: None, ui_command_sender,