diff options
author | Dan Winship <danw@gnome.org> | 2014-10-16 10:16:47 -0400 |
---|---|---|
committer | Dan Winship <danw@gnome.org> | 2014-10-22 08:29:10 -0400 |
commit | 3adc2b800ade93b8f9ff642d391ee73d66fec14c (patch) | |
tree | 51435675deb6a74944419216125445ceba65ee4f | |
parent | 5a181bcaae2b8a029ca201156ad22ccae2383319 (diff) | |
download | NetworkManager-3adc2b800ade93b8f9ff642d391ee73d66fec14c.tar.gz |
libnm: drop _nm_dbus_register_error_domain()
All D-Bus error domains are registered from libnm-core now.
-rw-r--r-- | libnm/nm-dbus-helpers.c | 21 | ||||
-rw-r--r-- | libnm/nm-dbus-helpers.h | 4 |
2 files changed, 0 insertions, 25 deletions
diff --git a/libnm/nm-dbus-helpers.c b/libnm/nm-dbus-helpers.c index 4c0318dd2e..5b24b2a366 100644 --- a/libnm/nm-dbus-helpers.c +++ b/libnm/nm-dbus-helpers.c @@ -329,27 +329,6 @@ _nm_dbus_new_proxy_for_connection_finish (GAsyncResult *result, return G_DBUS_PROXY (proxy); } -void -_nm_dbus_register_error_domain (GQuark domain, - const char *interface, - GType enum_type) -{ - GEnumClass *enum_class; - GEnumValue *e; - char *error_name; - int i; - - enum_class = g_type_class_ref (enum_type); - for (i = 0; i < enum_class->n_values; i++) { - e = &enum_class->values[i]; - error_name = g_strdup_printf ("%s.%s", interface, e->value_nick); - g_dbus_error_register_error (domain, e->value, error_name); - g_free (error_name); - } - - g_type_class_unref (enum_class); -} - /* Binds the properties on a generated server-side GDBus object to the * corresponding properties on the public object. */ diff --git a/libnm/nm-dbus-helpers.h b/libnm/nm-dbus-helpers.h index 9b0456b2bb..ca779d3a39 100644 --- a/libnm/nm-dbus-helpers.h +++ b/libnm/nm-dbus-helpers.h @@ -68,10 +68,6 @@ void _nm_dbus_new_proxy_for_connection_async (GDBusConnection *connectio GDBusProxy *_nm_dbus_new_proxy_for_connection_finish (GAsyncResult *result, GError **error); -void _nm_dbus_register_error_domain (GQuark domain, - const char *interface, - GType enum_type); - void _nm_dbus_bind_properties (gpointer object, gpointer skeleton); |