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:
parent
690efb960f
commit
19ddeaf607
@ -2375,7 +2375,6 @@ virHashEqual;
|
|||||||
virHashForEach;
|
virHashForEach;
|
||||||
virHashForEachSafe;
|
virHashForEachSafe;
|
||||||
virHashForEachSorted;
|
virHashForEachSorted;
|
||||||
virHashFree;
|
|
||||||
virHashGetItems;
|
virHashGetItems;
|
||||||
virHashHasEntry;
|
virHashHasEntry;
|
||||||
virHashLookup;
|
virHashLookup;
|
||||||
|
@ -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:
|
* virHashAddEntry:
|
||||||
* @table: the hash table
|
* @table: the hash table
|
||||||
|
@ -52,7 +52,6 @@ typedef int (*virHashSearcher) (const void *payload, const char *name,
|
|||||||
*/
|
*/
|
||||||
GHashTable *virHashNew(virHashDataFree dataFree) G_GNUC_WARN_UNUSED_RESULT;
|
GHashTable *virHashNew(virHashDataFree dataFree) G_GNUC_WARN_UNUSED_RESULT;
|
||||||
virHashAtomic *virHashAtomicNew(virHashDataFree dataFree);
|
virHashAtomic *virHashAtomicNew(virHashDataFree dataFree);
|
||||||
void virHashFree(GHashTable *table);
|
|
||||||
ssize_t virHashSize(GHashTable *table);
|
ssize_t virHashSize(GHashTable *table);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user