summaryrefslogtreecommitdiff
path: root/libnm/nm-device-bond.c
diff options
context:
space:
mode:
authorDan Winship <danw@gnome.org>2014-05-09 15:14:37 -0400
committerDan Winship <danw@gnome.org>2014-08-01 14:34:40 -0400
commita0e9a4bd45f25548f1fe580ddaf96ca6ff567721 (patch)
tree22ca1d9f7e5a285a47b6520ad6ac9ee5f4284dd6 /libnm/nm-device-bond.c
parent2fc55941a333b387528802b6fb88887916ef6d9c (diff)
libnm: remove _new functions from NMObject subclasses
Most NMObjects should not be manually created, they should only be received from NMClient or NMRemoteSettings.
Diffstat (limited to 'libnm/nm-device-bond.c')
-rw-r--r--libnm/nm-device-bond.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/libnm/nm-device-bond.c b/libnm/nm-device-bond.c
index 113aac0dd..d609a9b32 100644
--- a/libnm/nm-device-bond.c
+++ b/libnm/nm-device-bond.c
@@ -72,31 +72,6 @@ nm_device_bond_error_quark (void)
}
/**
- * nm_device_bond_new:
- * @connection: the #DBusGConnection
- * @path: the DBus object path of the device
- *
- * Creates a new #NMDeviceBond.
- *
- * Returns: (transfer full): a new device
- **/
-GObject *
-nm_device_bond_new (DBusGConnection *connection, const char *path)
-{
- GObject *device;
-
- g_return_val_if_fail (connection != NULL, NULL);
- g_return_val_if_fail (path != NULL, NULL);
-
- device = g_object_new (NM_TYPE_DEVICE_BOND,
- NM_OBJECT_DBUS_CONNECTION, connection,
- NM_OBJECT_DBUS_PATH, path,
- NULL);
- _nm_object_ensure_inited (NM_OBJECT (device));
- return device;
-}
-
-/**
* nm_device_bond_get_hw_address:
* @device: a #NMDeviceBond
*