]> xenbits.xensource.com Git - libvirt.git/commitdiff
util: delete VIR_AUTOFREE
authorJán Tomko <jtomko@redhat.com>
Wed, 16 Oct 2019 11:33:16 +0000 (13:33 +0200)
committerJán Tomko <jtomko@redhat.com>
Wed, 16 Oct 2019 13:59:41 +0000 (15:59 +0200)
Commit 1e2ae2e311c7453e7894e93688f8785736aa0618 deleted the last use
of VIR_AUTOFREE but forgot to delete the macro definition.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/util/viralloc.h

index c503bbe19b41f7b903400bbf8f0a3bafa3ea69f6..d7862d612735cb20dbc7046d74472cd568d1a6d4 100644 (file)
@@ -488,17 +488,3 @@ void virDisposeString(char **strptr)
  */
 #define VIR_DISPOSE(ptr) virDispose(1 ? (void *) &(ptr) : (ptr), 1, \
                                     sizeof(*(ptr)), NULL)
-
-
-/**
- * VIR_AUTOFREE:
- * @type: type of the variable to be freed automatically
- *
- * DEPRECATED: use g_autofree for new code. See HACKING
- * for further guidance.
- *
- * Macro to automatically free the memory allocated to
- * the variable declared with it by calling virFree
- * when the variable goes out of scope.
- */
-#define VIR_AUTOFREE(type) g_autofree type