summaryrefslogtreecommitdiff
path: root/libnm/nm-object.c
diff options
context:
space:
mode:
Diffstat (limited to 'libnm/nm-object.c')
-rw-r--r--libnm/nm-object.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/libnm/nm-object.c b/libnm/nm-object.c
index 5afca64413..a8544a1100 100644
--- a/libnm/nm-object.c
+++ b/libnm/nm-object.c
@@ -625,17 +625,6 @@ create_async_complete (GObject *object, NMObjectTypeAsyncData *async_data)
g_slice_free (NMObjectTypeAsyncData, async_data);
}
-static const char *
-nm_object_or_connection_get_path (gpointer instance)
-{
- if (NM_IS_OBJECT (instance))
- return nm_object_get_path (instance);
- else if (NM_IS_CONNECTION (instance))
- return nm_connection_get_path (instance);
-
- g_assert_not_reached ();
-}
-
static void
async_inited (GObject *object, GAsyncResult *result, gpointer user_data)
{
@@ -644,7 +633,7 @@ async_inited (GObject *object, GAsyncResult *result, gpointer user_data)
if (!g_async_initable_init_finish (G_ASYNC_INITABLE (object), result, &error)) {
dbgmsg ("Could not create object for %s: %s",
- nm_object_or_connection_get_path (object),
+ nm_object_get_path (NM_OBJECT (object)),
error->message);
g_error_free (error);
object = NULL;