[PATCH 7/7] util: buffer: remove virBufferSetChildIndent

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Promote usage of separate buffers for separate formatting passes by
removing the now unused virBufferSetChildIndent.

Signed-off-by: Peter Krempa <pkrempa@xxxxxxxxxx>
---
 src/util/virbuffer.h | 9 ---------
 1 file changed, 9 deletions(-)

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);

-- 
2.23.0

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list





[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux