diff options
author | Thomas Haller <thaller@redhat.com> | 2017-01-02 10:35:26 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2017-01-03 16:30:36 +0100 |
commit | 8320880710e85f0d0a3310c69e1103b7f3187b0d (patch) | |
tree | 89a830d2237ffef26ab3020d2654d1ceb0c3a654 | |
parent | 04361f494b0358b98d52ea70872645e57a077914 (diff) | |
download | NetworkManager-th/device-parent-bgo776719.tar.gz |
device: drop unused hook nm_device_notify_new_device_added()th/device-parent-bgo776719
The only implementations were there for tracking the parent device.
That is now donw via nm_device_parent_*(), parent_changed_notify()
and _parent_notify_changed().
-rw-r--r-- | src/devices/nm-device.c | 21 | ||||
-rw-r--r-- | src/devices/nm-device.h | 3 | ||||
-rw-r--r-- | src/nm-manager.c | 7 |
3 files changed, 0 insertions, 31 deletions
diff --git a/src/devices/nm-device.c b/src/devices/nm-device.c index 3dfe1717da..b6b464caa9 100644 --- a/src/devices/nm-device.c +++ b/src/devices/nm-device.c @@ -2830,27 +2830,6 @@ nm_device_unrealize (NMDevice *self, gboolean remove_resources, GError **error) } /** - * nm_device_notify_new_device_added(): - * @self: the #NMDevice - * @device: the newly added device - * - * Called by the manager to notify the device that a new device has - * been found and added. - */ -void -nm_device_notify_new_device_added (NMDevice *self, NMDevice *device) -{ - NMDeviceClass *klass; - - g_return_if_fail (NM_IS_DEVICE (self)); - g_return_if_fail (NM_IS_DEVICE (device)); - - klass = NM_DEVICE_GET_CLASS (self); - if (klass->notify_new_device_added) - klass->notify_new_device_added (self, device); -} - -/** * nm_device_notify_component_added(): * @self: the #NMDevice * @component: the component being added by a plugin diff --git a/src/devices/nm-device.h b/src/devices/nm-device.h index 621b5a1f0f..904c7d2390 100644 --- a/src/devices/nm-device.h +++ b/src/devices/nm-device.h @@ -317,8 +317,6 @@ typedef struct { gboolean (* have_any_ready_slaves) (NMDevice *self, const GSList *slaves); - void (* notify_new_device_added) (NMDevice *self, NMDevice *new_device); - void (* parent_changed_notify) (NMDevice *self, int old_ifindex, NMDevice *old_parent, @@ -596,7 +594,6 @@ gboolean nm_device_check_connection_available (NMDevice *device, NMDeviceCheckConAvailableFlags flags, const char *specific_object); -void nm_device_notify_new_device_added (NMDevice *self, NMDevice *new_device); gboolean nm_device_notify_component_added (NMDevice *device, GObject *component); gboolean nm_device_owns_iface (NMDevice *device, const char *iface); diff --git a/src/nm-manager.c b/src/nm-manager.c index 0441905bc9..2f0d66ee08 100644 --- a/src/nm-manager.c +++ b/src/nm-manager.c @@ -2074,13 +2074,6 @@ add_device (NMManager *self, NMDevice *device, GError **error) g_signal_emit (self, signals[INTERNAL_DEVICE_ADDED], 0, device); _notify (self, PROP_ALL_DEVICES); - for (iter = priv->devices; iter; iter = iter->next) { - NMDevice *d = iter->data; - - if (d != device) - nm_device_notify_new_device_added (d, device); - } - _parent_notify_changed (self, device, FALSE); /* Virtual connections may refer to the new device as |