diff --git a/rust/agama-dbus-server/src/network/nm/adapter.rs b/rust/agama-dbus-server/src/network/nm/adapter.rs index 3aa2c0393a..b7273e60ae 100644 --- a/rust/agama-dbus-server/src/network/nm/adapter.rs +++ b/rust/agama-dbus-server/src/network/nm/adapter.rs @@ -1,5 +1,4 @@ use crate::network::{ - error::NetworkStateError, model::{Connection, NetworkState}, nm::NetworkManagerClient, Adapter, diff --git a/rust/agama-dbus-server/src/network/nm/dbus.rs b/rust/agama-dbus-server/src/network/nm/dbus.rs index d22e9f4cff..f78a025e3e 100644 --- a/rust/agama-dbus-server/src/network/nm/dbus.rs +++ b/rust/agama-dbus-server/src/network/nm/dbus.rs @@ -294,19 +294,6 @@ fn match_config_to_dbus(match_config: &MatchConfig) -> HashMap<&str, zvariant::V ("interface-name", interfaces), ]) } -pub fn controller_from_dbus(conn: &OwnedNestedHash) -> Option { - let Some(connection) = conn.get("connection") else { - return None; - }; - - let Some(controller) = connection.get("master") else { - return None; - }; - - let controller: &str = controller.downcast_ref()?; - - Some(controller.to_string()) -} fn base_connection_from_dbus(conn: &OwnedNestedHash) -> Option { let Some(connection) = conn.get("connection") else {