]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
util: Remove VIR_REALLOC_N_QUIET
authorTim Wiederhake <twiederh@redhat.com>
Fri, 11 Sep 2020 11:42:18 +0000 (13:42 +0200)
committerJán Tomko <jtomko@redhat.com>
Fri, 11 Sep 2020 16:19:59 +0000 (18:19 +0200)
Signed-off-by: Tim Wiederhake <twiederh@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Signed-off-by: Ján Tomko <jtomko@redhat.com>
src/util/viralloc.h

index 833f85f62ec3d80e5543812a630cfcff5f07578b..3e57d8a6036d151870543ae94affde972ff1160e 100644 (file)
@@ -134,21 +134,6 @@ void virDisposeString(char **strptr)
  */
 #define VIR_REALLOC_N(ptr, count) virReallocN(&(ptr), sizeof(*(ptr)), (count))
 
-/**
- * VIR_REALLOC_N_QUIET:
- * @ptr: pointer to hold address of allocated memory
- * @count: number of elements to allocate
- *
- * Re-allocate an array of 'count' elements, each sizeof(*ptr)
- * bytes long and store the address of allocated memory in
- * 'ptr'. If 'ptr' grew, the added memory is uninitialized.
- *
- * This macro is safe to use on arguments with side effects.
- *
- * Returns 0 on success, aborts on OOM
- */
-#define VIR_REALLOC_N_QUIET(ptr, count) VIR_REALLOC_N(ptr, count)
-
 /**
  * VIR_EXPAND_N:
  * @ptr: pointer to hold address of allocated memory