[libvirt PATCH 4/4] util: virxml: unexport virXMLFormatElementInternal

Pavel Hrdina posted 4 patches 5 days, 19 hours ago
[libvirt PATCH 4/4] util: virxml: unexport virXMLFormatElementInternal
Posted by Pavel Hrdina 5 days, 19 hours ago
It is no longer used anywhere else.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
---
 src/libvirt_private.syms | 1 -
 src/util/virxml.c        | 2 +-
 src/util/virxml.h        | 7 -------
 3 files changed, 1 insertion(+), 9 deletions(-)

diff --git a/src/libvirt_private.syms b/src/libvirt_private.syms
index e9ddef6453..82b0974b94 100644
--- a/src/libvirt_private.syms
+++ b/src/libvirt_private.syms
@@ -3781,7 +3781,6 @@ virXMLExtractNamespaceXML;
 virXMLFormatElement;
 virXMLFormatElementDirect;
 virXMLFormatElementEmpty;
-virXMLFormatElementInternal;
 virXMLFormatMetadata;
 virXMLNewNode;
 virXMLNodeContentString;
diff --git a/src/util/virxml.c b/src/util/virxml.c
index 1295945472..06e698cdf8 100644
--- a/src/util/virxml.c
+++ b/src/util/virxml.c
@@ -1721,7 +1721,7 @@ virXMLValidatorFree(virXMLValidator *validator)
  *
  * Both passed buffers are always consumed and freed.
  */
-void
+static void
 virXMLFormatElementInternal(virBuffer *buf,
                             const char *name,
                             virBuffer *attrBuf,
diff --git a/src/util/virxml.h b/src/util/virxml.h
index 4284a8ffce..7cc3f47913 100644
--- a/src/util/virxml.h
+++ b/src/util/virxml.h
@@ -332,13 +332,6 @@ void
 virXMLValidatorFree(virXMLValidator *validator);
 G_DEFINE_AUTOPTR_CLEANUP_FUNC(virXMLValidator, virXMLValidatorFree);
 
-void
-virXMLFormatElementInternal(virBuffer *buf,
-                            const char *name,
-                            virBuffer *attrBuf,
-                            virBuffer *childBuf,
-                            bool allowEmpty,
-                            bool childNewline);
 void
 virXMLFormatElement(virBuffer *buf,
                     const char *name,
-- 
2.48.1