summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2018-03-29 08:19:34 +0200
committerThomas Haller <thaller@redhat.com>2018-03-29 11:24:32 +0200
commitbdbe1337dc756dc4699c0c00029852d1643e2c44 (patch)
treee823adbeae73ab9f4eaad8f5fad648304a589663
parent16262f6a538e35b957d917f574870ec39b25f2c4 (diff)
downloadNetworkManager-bdbe1337dc756dc4699c0c00029852d1643e2c44.tar.gz
core: drop unused nm_dbus_utils_g_value_set_object_path_array() function
-rw-r--r--src/nm-dbus-utils.c27
-rw-r--r--src/nm-dbus-utils.h5
2 files changed, 0 insertions, 32 deletions
diff --git a/src/nm-dbus-utils.c b/src/nm-dbus-utils.c
index 0335e28a6d..e7b4d5e13c 100644
--- a/src/nm-dbus-utils.c
+++ b/src/nm-dbus-utils.c
@@ -121,33 +121,6 @@ nm_dbus_utils_g_value_set_object_path (GValue *value, gpointer object)
}
void
-nm_dbus_utils_g_value_set_object_path_array (GValue *value,
- GSList *objects,
- gboolean (*filter_func) (GObject *object, gpointer user_data),
- gpointer user_data)
-{
- char **paths;
- guint i;
- GSList *iter;
-
- paths = g_new (char *, g_slist_length (objects) + 1);
- for (i = 0, iter = objects; iter; iter = iter->next) {
- NMDBusObject *object = iter->data;
- const char *path;
-
- path = nm_dbus_object_get_path (object);
- if (!path)
- continue;
- if ( filter_func
- && !filter_func ((GObject *) object, user_data))
- continue;
- paths[i++] = g_strdup (path);
- }
- paths[i] = NULL;
- g_value_take_boxed (value, paths);
-}
-
-void
nm_dbus_utils_g_value_set_object_path_from_hash (GValue *value,
GHashTable *hash /* is has keys of NMDBusObject type. */,
gboolean expect_all_exported)
diff --git a/src/nm-dbus-utils.h b/src/nm-dbus-utils.h
index e556cdd1b0..1d9c92ec36 100644
--- a/src/nm-dbus-utils.h
+++ b/src/nm-dbus-utils.h
@@ -166,11 +166,6 @@ GVariant *nm_dbus_utils_get_property (GObject *obj,
void nm_dbus_utils_g_value_set_object_path (GValue *value, gpointer object);
-void nm_dbus_utils_g_value_set_object_path_array (GValue *value,
- GSList *objects,
- gboolean (*filter_func) (GObject *object, gpointer user_data),
- gpointer user_data);
-
void nm_dbus_utils_g_value_set_object_path_from_hash (GValue *value,
GHashTable *hash,
gboolean expect_all_exported);