Skip to content

Commit

Permalink
Drop some unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
imobachgs committed Dec 5, 2023
1 parent f4a6341 commit 894a647
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
1 change: 0 additions & 1 deletion rust/agama-dbus-server/src/network/nm/adapter.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use crate::network::{
error::NetworkStateError,
model::{Connection, NetworkState},
nm::NetworkManagerClient,
Adapter,
Expand Down
13 changes: 0 additions & 13 deletions rust/agama-dbus-server/src/network/nm/dbus.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<String> {
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<BaseConnection> {
let Some(connection) = conn.get("connection") else {
Expand Down

0 comments on commit 894a647

Please sign in to comment.