summaryrefslogtreecommitdiff
path: root/src/libotutil/ot-variant-utils.c
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2017-10-04 16:55:53 -0400
committerAtomic Bot <atomic-devel@projectatomic.io>2017-10-05 15:41:00 +0000
commita903f96673ec8c42c7ccc60018a56b09539ad8f9 (patch)
tree97101141616f51d25ef953633c91c0493dd67d5d /src/libotutil/ot-variant-utils.c
parent2e3889a4eb2e33b6cd0e0cc683ee9f047a756b6e (diff)
downloadostree-a903f96673ec8c42c7ccc60018a56b09539ad8f9.tar.gz
lib/util: Delete some unused functions
Hooray, dead code. Closes: #1254 Approved by: jlebon
Diffstat (limited to 'src/libotutil/ot-variant-utils.c')
-rw-r--r--src/libotutil/ot-variant-utils.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/libotutil/ot-variant-utils.c b/src/libotutil/ot-variant-utils.c
index 1429a3a7..afb80be1 100644
--- a/src/libotutil/ot-variant-utils.c
+++ b/src/libotutil/ot-variant-utils.c
@@ -60,28 +60,6 @@ ot_gvariant_new_ay_bytes (GBytes *bytes)
TRUE, (GDestroyNotify)g_bytes_unref, bytes);
}
-/* Convert a GVariant of type a{sv} to a GHashTable */
-GHashTable *
-ot_util_variant_asv_to_hash_table (GVariant *variant)
-{
-
- GHashTable *ret = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, (GDestroyNotify)g_variant_unref);
- g_autoptr(GVariantIter) viter = g_variant_iter_new (variant);
-
- char *key;
- GVariant *value;
- while (g_variant_iter_next (viter, "{s@v}", &key, &value))
- g_hash_table_replace (ret, key, g_variant_ref_sink (value));
-
- return ret;
-}
-
-GVariant *
-ot_util_variant_take_ref (GVariant *variant)
-{
- return g_variant_take_ref (variant);
-}
-
/* Create a GVariant in @out_variant that is backed by
* the data from @fd, starting at @start. If the data is
* large enough, mmap() may be used. @trusted is used