summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2019-09-04 18:00:41 +0200
committerThomas Haller <thaller@redhat.com>2019-09-21 14:58:26 +0200
commit30ce0079a8ab4570914531572e761bb691a9cf4a (patch)
tree0d6bd7ab84d6777ba291fdcd4ebbcd8b4d195624
parent7db00be6b783d2435217a0fcef5c8159cfd1ce4c (diff)
downloadNetworkManager-30ce0079a8ab4570914531572e761bb691a9cf4a.tar.gz
libnm: drop unused property setter NM_DEVICE_MANAGED
NM_DEVICE_MANAGED was intended to work like NM_DEVICE_AUTOCONNECT: namely it would call the D-Bus property setter synchronously. But such behavior is horrendous, we certainly don't want blocking calls during a property getter. Luckily this one instance was unused and never worked as the property was marked as G_PARAM_READABLE. Just drop the setter.
-rw-r--r--libnm/nm-device.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/libnm/nm-device.c b/libnm/nm-device.c
index 49a929fa85..f6663fbd23 100644
--- a/libnm/nm-device.c
+++ b/libnm/nm-device.c
@@ -444,11 +444,6 @@ set_property (GObject *object,
gboolean b;
switch (prop_id) {
- case PROP_MANAGED:
- b = g_value_get_boolean (value);
- if (priv->managed != b)
- nm_device_set_managed (NM_DEVICE (object), b);
- break;
case PROP_AUTOCONNECT:
b = g_value_get_boolean (value);
if (priv->autoconnect != b)