From: Peter Krempa Date: Fri, 25 Oct 2019 15:33:21 +0000 (+0200) Subject: util: buffer: remove virBufferSetChildIndent X-Git-Tag: v5.10.0-rc1~253 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=48b68470c8ba759d34cfca5370d8f5aa7e4f79df;p=thirdparty%2Flibvirt.git util: buffer: remove virBufferSetChildIndent Promote usage of separate buffers for separate formatting passes by removing the now unused virBufferSetChildIndent. Signed-off-by: Peter Krempa Reviewed-by: Ján Tomko --- diff --git a/src/util/virbuffer.h b/src/util/virbuffer.h index a2e30c07dc..38758a9125 100644 --- a/src/util/virbuffer.h +++ b/src/util/virbuffer.h @@ -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);