]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
util: Remove VIR_ALLOC_N_QUIET
authorTim Wiederhake <twiederh@redhat.com>
Mon, 14 Sep 2020 08:01:54 +0000 (10:01 +0200)
committerJán Tomko <jtomko@redhat.com>
Mon, 14 Sep 2020 15:28:51 +0000 (17:28 +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 fa2bc8a2bc07b7284e22ce87fac3bf51545d54fe..a50cd5d63218280de4baf30f10946036f8ea7ba3 100644 (file)
@@ -90,21 +90,6 @@ void virDisposeString(char **strptr)
  */
 #define VIR_ALLOC_N(ptr, count) virAllocN(&(ptr), sizeof(*(ptr)), (count))
 
-/**
- * VIR_ALLOC_N_QUIET:
- * @ptr: pointer to hold address of allocated memory
- * @count: number of elements to allocate
- *
- * Allocate an array of 'count' elements, each sizeof(*ptr)
- * bytes long and store the address of allocated memory in
- * 'ptr'. Fill the newly allocated memory with zeros.
- *
- * This macro is safe to use on arguments with side effects.
- *
- * Returns 0 on success, aborts on OOM
- */
-#define VIR_ALLOC_N_QUIET(ptr, count) VIR_ALLOC_N(ptr, count)
-
 /**
  * VIR_REALLOC_N:
  * @ptr: pointer to hold address of allocated memory