diff options
author | Dan Williams <dcbw@redhat.com> | 2013-05-17 10:58:38 -0500 |
---|---|---|
committer | Dan Winship <danw@gnome.org> | 2013-05-20 16:38:34 -0300 |
commit | be807819b053c67f2d704e1a8e562dcfa230e862 (patch) | |
tree | eefd2034a373a360c0db415de72146e61d306514 /src/devices/nm-device-generic.c | |
parent | 38459f5a0051040d73910deaa65be57167d384e8 (diff) |
core: clean up and simplify device capabilities handling
This is really, really old 2007-era code. Any NMDevice that gets
created is already supported, so there's no reason to have every
device set NM_DEVICE_CAP_NM_SUPPORTED. For those subclasses that
only set that capability, we can remove the subclass method
entirely. Next, it turns out that the "type capabilities" code
wasn't used anywhere, so remove that too. Lastly, "cipsec"
interfaces haven't been used on linux in about 5 years (they
were created by the Cisco binary-only IPSec kernel module for
Cisco VPNs long before vpnc and openswan came around) so we can
remove that code too.
Diffstat (limited to 'src/devices/nm-device-generic.c')
-rw-r--r-- | src/devices/nm-device-generic.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/devices/nm-device-generic.c b/src/devices/nm-device-generic.c index 6aa19ac48e..1b15932d60 100644 --- a/src/devices/nm-device-generic.c +++ b/src/devices/nm-device-generic.c @@ -58,12 +58,6 @@ nm_device_generic_error_quark (void) /**************************************************************/ -static guint32 -get_generic_capabilities (NMDevice *dev) -{ - return NM_DEVICE_CAP_NM_SUPPORTED; -} - static gboolean is_available (NMDevice *device) { @@ -196,7 +190,6 @@ nm_device_generic_class_init (NMDeviceGenericClass *klass) object_class->get_property = get_property; object_class->set_property = set_property; - parent_class->get_generic_capabilities = get_generic_capabilities; parent_class->is_available = is_available; parent_class->check_connection_compatible = check_connection_compatible; |