From 19370215c0235c65b7ba1c5c6f8981ecb666db64 Mon Sep 17 00:00:00 2001 From: "Luke D. Jones" Date: Sun, 24 Jul 2022 20:55:09 +1200 Subject: [PATCH] Cleanup --- daemon/src/ctrl_aura/controller.rs | 1 - daemon/src/ctrl_aura/zbus.rs | 8 -------- rog-dbus/src/zbus_led.rs | 1 - 3 files changed, 10 deletions(-) diff --git a/daemon/src/ctrl_aura/controller.rs b/daemon/src/ctrl_aura/controller.rs index d4eb6e76..cebf828d 100644 --- a/daemon/src/ctrl_aura/controller.rs +++ b/daemon/src/ctrl_aura/controller.rs @@ -419,7 +419,6 @@ impl CtrlKbdLed { self.config.read(); // if self.config.builtins.contains_key(&next) { self.config.current_mode = next; - dbg!(self.config.current_mode); self.write_current_config_mode()?; // } self.config.write(); diff --git a/daemon/src/ctrl_aura/zbus.rs b/daemon/src/ctrl_aura/zbus.rs index 5441fe83..1528d8f4 100644 --- a/daemon/src/ctrl_aura/zbus.rs +++ b/daemon/src/ctrl_aura/zbus.rs @@ -175,18 +175,10 @@ impl CtrlKbdLedZbus { } /// Return the current mode data - // #[dbus_interface(property)] async fn led_mode(&self) -> AuraModeNum { if let Ok(ctrl) = self.0.try_lock() { - // if let Some(mode) = ctrl.config.builtins.get(&ctrl.config.current_mode) { - // if let Ok(json) = serde_json::to_string(&ctrl.config.current_mode) { - // return json; - // } - // } return ctrl.config.current_mode; } - // warn!("SetKeyBacklight could not deserialise"); - // "SetKeyBacklight could not deserialise".to_string() AuraModeNum::Static } diff --git a/rog-dbus/src/zbus_led.rs b/rog-dbus/src/zbus_led.rs index c529eb57..60105640 100644 --- a/rog-dbus/src/zbus_led.rs +++ b/rog-dbus/src/zbus_led.rs @@ -63,7 +63,6 @@ trait Led { fn led_brightness(&self) -> zbus::Result; /// LedMode property - // #[dbus_proxy(property)] fn led_mode(&self) -> zbus::Result; /// LedModes property