1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-03-07 17:28:15 +00:00

util: virhash: Remove 'virHashFree'

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>
This commit is contained in:
Peter Krempa 2021-11-30 14:20:02 +01:00
parent 690efb960f
commit 19ddeaf607
3 changed files with 0 additions and 21 deletions

View File

@ -2375,7 +2375,6 @@ virHashEqual;
virHashForEach;
virHashForEachSafe;
virHashForEachSorted;
virHashFree;
virHashGetItems;
virHashHasEntry;
virHashLookup;

View 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

View 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);
/*