virHashRemoveAll: Don't return number of removed items

Nobody uses the return value.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
Peter Krempa 2020-10-21 14:57:36 +02:00
parent 7c1a4bc775
commit 4505f11d65
2 changed files with 3 additions and 7 deletions

View File

@ -579,15 +579,11 @@ _virHashRemoveAllIter(const void *payload G_GNUC_UNUSED,
* *
* Free the hash @table's contents. The userdata is * Free the hash @table's contents. The userdata is
* deallocated with the function provided at creation time. * deallocated with the function provided at creation time.
*
* Returns the number of items removed on success, -1 on failure
*/ */
ssize_t void
virHashRemoveAll(virHashTablePtr table) virHashRemoveAll(virHashTablePtr table)
{ {
return virHashRemoveSet(table, virHashRemoveSet(table, _virHashRemoveAllIter, NULL);
_virHashRemoveAllIter,
NULL);
} }
/** /**

View File

@ -83,7 +83,7 @@ int virHashRemoveEntry(virHashTablePtr table,
/* /*
* Remove all entries from the hash table. * Remove all entries from the hash table.
*/ */
ssize_t virHashRemoveAll(virHashTablePtr table); void virHashRemoveAll(virHashTablePtr table);
/* /*
* Retrieve the userdata. * Retrieve the userdata.