From: Peter Krempa Date: Tue, 30 Nov 2021 13:20:02 +0000 (+0100) Subject: util: virhash: Remove 'virHashFree' X-Git-Tag: v8.0.0-rc1~409 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=19ddeaf607db99049dcb006fe60991be705a4d76;p=thirdparty%2Flibvirt.git util: virhash: Remove 'virHashFree' The code was converted to stop using this function. Signed-off-by: Peter Krempa Reviewed-by: Ján Tomko Reviewed-by: Martin Kletzander --- diff --git a/src/libvirt_private.syms b/src/libvirt_private.syms index cdf9ca49b8..7be5b51100 100644 --- a/src/libvirt_private.syms +++ b/src/libvirt_private.syms @@ -2375,7 +2375,6 @@ virHashEqual; virHashForEach; virHashForEachSafe; virHashForEachSorted; -virHashFree; virHashGetItems; virHashHasEntry; virHashLookup; diff --git a/src/util/virhash.c b/src/util/virhash.c index cc6053f28d..ce954e86ec 100644 --- a/src/util/virhash.c +++ b/src/util/virhash.c @@ -116,25 +116,6 @@ virHashAtomicDispose(void *obj) } -/** - * virHashFree: - * @table: the hash table - * - * Free the hash @table and its contents. The userdata is - * deallocated with function provided at creation time. - * - * Deprecated: consider using g_hash_table_unref instead - */ -void -virHashFree(GHashTable *table) -{ - if (table == NULL) - return; - - g_hash_table_unref(table); -} - - /** * virHashAddEntry: * @table: the hash table diff --git a/src/util/virhash.h b/src/util/virhash.h index 426d835cfc..fcab8454bd 100644 --- a/src/util/virhash.h +++ b/src/util/virhash.h @@ -52,7 +52,6 @@ typedef int (*virHashSearcher) (const void *payload, const char *name, */ GHashTable *virHashNew(virHashDataFree dataFree) G_GNUC_WARN_UNUSED_RESULT; virHashAtomic *virHashAtomicNew(virHashDataFree dataFree); -void virHashFree(GHashTable *table); ssize_t virHashSize(GHashTable *table); /*