From e1f6ef5bc121e9e1c55767ea3dfdfbe8069a7232 Mon Sep 17 00:00:00 2001 From: Quentin Vedrenne Date: Mon, 1 May 2023 15:16:02 +0200 Subject: [PATCH] DELETE: deprecated bridge interface --- system-configuration-sys/src/network_configuration.rs | 2 -- system-configuration/src/network_configuration.rs | 4 ---- 2 files changed, 6 deletions(-) diff --git a/system-configuration-sys/src/network_configuration.rs b/system-configuration-sys/src/network_configuration.rs index 686bf87..8b96e78 100644 --- a/system-configuration-sys/src/network_configuration.rs +++ b/system-configuration-sys/src/network_configuration.rs @@ -126,8 +126,6 @@ extern "C" { pub static kSCNetworkInterfaceTypeBond: CFStringRef; - pub static kSCNetworkInterfaceTypeBridge: CFStringRef; - pub static kSCNetworkInterfaceTypeEthernet: CFStringRef; pub static kSCNetworkInterfaceTypeFireWire: CFStringRef; diff --git a/system-configuration/src/network_configuration.rs b/system-configuration/src/network_configuration.rs index 7b503bb..e71ce9d 100644 --- a/system-configuration/src/network_configuration.rs +++ b/system-configuration/src/network_configuration.rs @@ -103,8 +103,6 @@ pub enum SCNetworkInterfaceType { SixToFour, /// Bluetooth interface. Bluetooth, - /// Bridge interface. - Bridge, /// Ethernet bond interface. Bond, /// Ethernet interface. @@ -152,8 +150,6 @@ impl SCNetworkInterfaceType { Some(SCNetworkInterfaceType::SixToFour) } else if id_is_equal_to(kSCNetworkInterfaceTypeBluetooth) { Some(SCNetworkInterfaceType::Bluetooth) - } else if id_is_equal_to(kSCNetworkInterfaceTypeBridge) { - Some(SCNetworkInterfaceType::Bridge) } else if id_is_equal_to(kSCNetworkInterfaceTypeBond) { Some(SCNetworkInterfaceType::Bond) } else if id_is_equal_to(kSCNetworkInterfaceTypeEthernet) {