summaryrefslogtreecommitdiff
path: root/src/devices/nm-device-infiniband.c
diff options
context:
space:
mode:
authorDan Winship <danw@gnome.org>2013-05-07 10:23:44 -0400
committerDan Winship <danw@gnome.org>2013-05-20 16:38:33 -0300
commit82222d38986aaaf5534146d966a2ffdd2b514b32 (patch)
treef8d634ea8ef48c15ca5ae438589e297138dc11c2 /src/devices/nm-device-infiniband.c
parent5a223b908954a67aef0c77ca29a251560eaace60 (diff)
downloadNetworkManager-82222d38986aaaf5534146d966a2ffdd2b514b32.tar.gz
core: move carrier handling to NMDevice
Move carrier handling for most device types into NMDevice. Based on an earlier patch by Pavel Šimerda.
Diffstat (limited to 'src/devices/nm-device-infiniband.c')
-rw-r--r--src/devices/nm-device-infiniband.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/devices/nm-device-infiniband.c b/src/devices/nm-device-infiniband.c
index 200370fce2..b951936097 100644
--- a/src/devices/nm-device-infiniband.c
+++ b/src/devices/nm-device-infiniband.c
@@ -49,7 +49,6 @@ typedef struct {
enum {
PROP_0,
- PROP_CARRIER,
LAST_PROP
};
@@ -300,9 +299,6 @@ get_property (GObject *object, guint prop_id,
GValue *value, GParamSpec *pspec)
{
switch (prop_id) {
- case PROP_CARRIER:
- g_value_set_boolean (value, nm_device_wired_get_carrier (NM_DEVICE_WIRED (object)));
- break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
break;
@@ -344,13 +340,6 @@ nm_device_infiniband_class_init (NMDeviceInfinibandClass *klass)
parent_class->get_connection_hw_address = get_connection_hw_address;
/* properties */
- g_object_class_install_property
- (object_class, PROP_CARRIER,
- g_param_spec_boolean (NM_DEVICE_INFINIBAND_CARRIER,
- "Carrier",
- "Carrier",
- FALSE,
- G_PARAM_READABLE));
nm_dbus_manager_register_exported_type (nm_dbus_manager_get (),
G_TYPE_FROM_CLASS (klass),