From: Ján Tomko Date: Wed, 16 Oct 2019 11:33:16 +0000 (+0200) Subject: util: delete VIR_AUTOFREE X-Git-Tag: v5.9.0-rc1~200 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d402e719011f7abec82277afb363459ecfe519e8;p=thirdparty%2Flibvirt.git util: delete VIR_AUTOFREE Commit 1e2ae2e311c7453e7894e93688f8785736aa0618 deleted the last use of VIR_AUTOFREE but forgot to delete the macro definition. Signed-off-by: Ján Tomko Reviewed-by: Michal Privoznik --- diff --git a/src/util/viralloc.h b/src/util/viralloc.h index c503bbe19b..d7862d6127 100644 --- a/src/util/viralloc.h +++ b/src/util/viralloc.h @@ -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