summaryrefslogtreecommitdiff
path: root/libnm/nm-device-olpc-mesh.c
diff options
context:
space:
mode:
authorDan Winship <danw@gnome.org>2014-05-15 14:25:07 -0400
committerDan Winship <danw@gnome.org>2014-08-01 14:34:40 -0400
commit258e74eb0c191cdd86719ad65864ab3c27ada80c (patch)
tree29d5a0d72ca94d1ea7daaa6c19ef745db31806fd /libnm/nm-device-olpc-mesh.c
parent8ca2998d81ca7534c59262b10f5bf3c480177b88 (diff)
downloadNetworkManager-258e74eb0c191cdd86719ad65864ab3c27ada80c.tar.gz
libnm: make the the use of GInitable mandatory
Remove _nm_object_ensure_inited(), etc; objects that implement GInitable are now mandatory-to-init(). Remove constructor() implementations that sometimes return NULL; do all the relevant checking in init() instead. Make nm_client_new() and nm_remote_settings_new() take a GCancellable and a GError**.
Diffstat (limited to 'libnm/nm-device-olpc-mesh.c')
-rw-r--r--libnm/nm-device-olpc-mesh.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/libnm/nm-device-olpc-mesh.c b/libnm/nm-device-olpc-mesh.c
index 2416e3810a..b8c2c25cca 100644
--- a/libnm/nm-device-olpc-mesh.c
+++ b/libnm/nm-device-olpc-mesh.c
@@ -83,7 +83,6 @@ nm_device_olpc_mesh_get_hw_address (NMDeviceOlpcMesh *device)
{
g_return_val_if_fail (NM_IS_DEVICE_OLPC_MESH (device), NULL);
- _nm_object_ensure_inited (NM_OBJECT (device));
return NM_DEVICE_OLPC_MESH_GET_PRIVATE (device)->hw_address;
}
@@ -100,7 +99,6 @@ nm_device_olpc_mesh_get_companion (NMDeviceOlpcMesh *device)
{
g_return_val_if_fail (NM_IS_DEVICE_OLPC_MESH (device), NULL);
- _nm_object_ensure_inited (NM_OBJECT (device));
return NM_DEVICE_OLPC_MESH_GET_PRIVATE (device)->companion;
}
@@ -117,7 +115,6 @@ nm_device_olpc_mesh_get_active_channel (NMDeviceOlpcMesh *device)
{
g_return_val_if_fail (NM_IS_DEVICE_OLPC_MESH (device), 0);
- _nm_object_ensure_inited (NM_OBJECT (device));
return NM_DEVICE_OLPC_MESH_GET_PRIVATE (device)->active_channel;
}
@@ -216,8 +213,6 @@ get_property (GObject *object,
{
NMDeviceOlpcMesh *device = NM_DEVICE_OLPC_MESH (object);
- _nm_object_ensure_inited (NM_OBJECT (object));
-
switch (prop_id) {
case PROP_HW_ADDRESS:
g_value_set_string (value, nm_device_olpc_mesh_get_hw_address (device));