]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
util: Remove VIR_ALLOC_QUIET
authorTim Wiederhake <twiederh@redhat.com>
Mon, 14 Sep 2020 08:01:51 +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 3e57d8a6036d151870543ae94affde972ff1160e..fa2bc8a2bc07b7284e22ce87fac3bf51545d54fe 100644 (file)
@@ -75,20 +75,6 @@ void virDisposeString(char **strptr)
  */
 #define VIR_ALLOC(ptr) virAlloc(&(ptr), sizeof(*(ptr)))
 
-/**
- * VIR_ALLOC_QUIET:
- * @ptr: pointer to hold address of allocated memory
- *
- * Allocate sizeof(*ptr) bytes of memory 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_QUIET(ptr) VIR_ALLOC(ptr)
-
 /**
  * VIR_ALLOC_N:
  * @ptr: pointer to hold address of allocated memory