]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
util: buffer: remove virBufferSetChildIndent
authorPeter Krempa <pkrempa@redhat.com>
Fri, 25 Oct 2019 15:33:21 +0000 (17:33 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 13 Nov 2019 08:10:30 +0000 (09:10 +0100)
Promote usage of separate buffers for separate formatting passes by
removing the now unused virBufferSetChildIndent.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/util/virbuffer.h

index a2e30c07dcbab71d4d51fa1af4e42392f9e2ddfd..38758a9125998cfa90ffb0f9aa4f5b5e51d4c241 100644 (file)
@@ -88,15 +88,6 @@ void virBufferURIEncodeString(virBufferPtr buf, const char *str);
 void virBufferAdjustIndent(virBufferPtr buf, int indent);
 void virBufferSetIndent(virBufferPtr, int indent);
 
-/**
- * virBufferSetChildIndent
- *
- * Gets the parent indentation, increments it by 2 and sets it to
- * child buffer.
- */
-#define virBufferSetChildIndent(childBuf_, parentBuf_) \
-    virBufferSetIndent(childBuf_, virBufferGetIndent(parentBuf_) + 2)
-
 size_t virBufferGetIndent(const virBuffer *buf);
 size_t virBufferGetEffectiveIndent(const virBuffer *buf);