]> xenbits.xensource.com Git - libvirt.git/commitdiff
util: virhash: Remove 'virHashFree'
authorPeter Krempa <pkrempa@redhat.com>
Tue, 30 Nov 2021 13:20:02 +0000 (14:20 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 1 Dec 2021 12:53:12 +0000 (13:53 +0100)
The code was converted to stop using this function.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
src/libvirt_private.syms
src/util/virhash.c
src/util/virhash.h

index cdf9ca49b8d7f4408fdea7afaa3b5cb2fc0c85cb..7be5b511000f054530fe86227c0f9c0b5f1dc0fe 100644 (file)
@@ -2375,7 +2375,6 @@ virHashEqual;
 virHashForEach;
 virHashForEachSafe;
 virHashForEachSorted;
-virHashFree;
 virHashGetItems;
 virHashHasEntry;
 virHashLookup;
index cc6053f28d6e92ad69d86296094013973234ae75..ce954e86ec6ca2cc8fd2b42b324a39bda2f8f110 100644 (file)
@@ -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
index 426d835cfc9d958dba09f7c767e40b5b1a9b453c..fcab8454bd83e75629e8b00f468f2d4febd3320c 100644 (file)
@@ -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);
 
 /*