util: buffer: remove virBufferSetChildIndent
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>
This commit is contained in:
parent
e8bed23d15
commit
48b68470c8
@ -88,15 +88,6 @@ void virBufferURIEncodeString(virBufferPtr buf, const char *str);
|
|||||||
void virBufferAdjustIndent(virBufferPtr buf, int indent);
|
void virBufferAdjustIndent(virBufferPtr buf, int indent);
|
||||||
void virBufferSetIndent(virBufferPtr, 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 virBufferGetIndent(const virBuffer *buf);
|
||||||
size_t virBufferGetEffectiveIndent(const virBuffer *buf);
|
size_t virBufferGetEffectiveIndent(const virBuffer *buf);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user