The function is no longer used. Remove it.
Signed-off-by: Michal Privoznik <mprivozn(a)redhat.com>
---
src/libvirt_private.syms | 1 -
src/util/virdnsmasq.c | 14 --------------
src/util/virdnsmasq.h | 1 -
3 files changed, 16 deletions(-)
diff --git a/src/libvirt_private.syms b/src/libvirt_private.syms
index ee14b99d88..aa23e8c0ec 100644
--- a/src/libvirt_private.syms
+++ b/src/libvirt_private.syms
@@ -2114,7 +2114,6 @@ dnsmasqAddDhcpHost;
dnsmasqAddHost;
dnsmasqCapsGetBinaryPath;
dnsmasqCapsNewFromBinary;
-dnsmasqCapsNewFromBuffer;
dnsmasqContextFree;
dnsmasqContextNew;
dnsmasqDelete;
diff --git a/src/util/virdnsmasq.c b/src/util/virdnsmasq.c
index 6d63e9e3c5..ca52bf7871 100644
--- a/src/util/virdnsmasq.c
+++ b/src/util/virdnsmasq.c
@@ -708,20 +708,6 @@ dnsmasqCapsNewEmpty(void)
return g_steal_pointer(&caps);
}
-dnsmasqCaps *
-dnsmasqCapsNewFromBuffer(const char *buf)
-{
- g_autoptr(dnsmasqCaps) caps = dnsmasqCapsNewEmpty();
-
- if (!caps)
- return NULL;
-
- if (dnsmasqCapsSetFromBuffer(caps, buf) < 0)
- return NULL;
-
- return g_steal_pointer(&caps);
-}
-
dnsmasqCaps *
dnsmasqCapsNewFromBinary(void)
{
diff --git a/src/util/virdnsmasq.h b/src/util/virdnsmasq.h
index c74cc887f8..cc1c337d41 100644
--- a/src/util/virdnsmasq.h
+++ b/src/util/virdnsmasq.h
@@ -91,7 +91,6 @@ int dnsmasqSave(const dnsmasqContext *ctx);
int dnsmasqDelete(const dnsmasqContext *ctx);
int dnsmasqReload(pid_t pid);
-dnsmasqCaps *dnsmasqCapsNewFromBuffer(const char *buf);
dnsmasqCaps *dnsmasqCapsNewFromBinary(void);
const char *dnsmasqCapsGetBinaryPath(dnsmasqCaps *caps);
char *dnsmasqDhcpHostsToString(dnsmasqDhcpHost *hosts,
--
2.34.1