]> xenbits.xensource.com Git - libvirt.git/commitdiff
util: buffer: Remove misleading AUTOPTR func for 'virBuffer'
authorPeter Krempa <pkrempa@redhat.com>
Thu, 21 Feb 2019 14:39:57 +0000 (15:39 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 22 Feb 2019 09:05:45 +0000 (10:05 +0100)
'virBufferFreeAndReset' does not free the top level structure itself.
Additionally we almost exclusively use stack'd buffers rather than
pointers.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
src/util/virbuffer.h

index 8bf6bee6441ad48367454a79691935a47a2256db..1c8e182064a24f098c565a05502fa73a6661971a 100644 (file)
@@ -119,6 +119,4 @@ int virBufferGetIndent(const virBuffer *buf, bool dynamic);
 void virBufferTrim(virBufferPtr buf, const char *trim, int len);
 void virBufferAddStr(virBufferPtr buf, const char *str);
 
-VIR_DEFINE_AUTOPTR_FUNC(virBuffer, virBufferFreeAndReset);
-
 #endif /* LIBVIRT_VIRBUFFER_H */