]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
virdnsmasq: drop unused dnsmasqCapsRefresh function
authorPavel Hrdina <phrdina@redhat.com>
Wed, 14 Apr 2021 15:19:11 +0000 (17:19 +0200)
committerPavel Hrdina <phrdina@redhat.com>
Wed, 21 Apr 2021 12:18:14 +0000 (14:18 +0200)
Instead of removing binaryPath let's drop the function completely as
it is not used anywhere.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
src/libvirt_private.syms
src/util/virdnsmasq.c
src/util/virdnsmasq.h

index d60d15a43eae5fee3909cbbf591dede204495ea9..34e22d37d660fe5be8517b00e70e0ad1892d1c31 100644 (file)
@@ -2091,7 +2091,6 @@ dnsmasqCapsGetBinaryPath;
 dnsmasqCapsGetVersion;
 dnsmasqCapsNewFromBinary;
 dnsmasqCapsNewFromBuffer;
-dnsmasqCapsRefresh;
 dnsmasqContextFree;
 dnsmasqContextNew;
 dnsmasqDelete;
index 57f7ef67f16c760e3ed24ca7a69ac1bcbdf0c55e..89f33c22a80f634c59727c17f79b2b33a26c7379 100644 (file)
@@ -773,23 +773,6 @@ dnsmasqCapsNewFromBinary(const char *binaryPath)
     return caps;
 }
 
-/** dnsmasqCapsRefresh:
- *
- *   Refresh an existing caps object if the binary has changed. If
- *   there isn't yet a caps object (if it's NULL), create a new one.
- *
- *   Returns 0 on success, -1 on failure
- */
-int
-dnsmasqCapsRefresh(dnsmasqCaps **caps, const char *binaryPath)
-{
-    if (!*caps) {
-        *caps = dnsmasqCapsNewFromBinary(binaryPath);
-        return *caps ? 0 : -1;
-    }
-    return dnsmasqCapsRefreshInternal(*caps, false);
-}
-
 const char *
 dnsmasqCapsGetBinaryPath(dnsmasqCaps *caps)
 {
index 09e6164dc0284e6486628fb8873efc12edeaa8f8..8b9474f774e6cfab8db4dee28d1af5ce750730ea 100644 (file)
@@ -102,7 +102,6 @@ int              dnsmasqReload(pid_t pid);
 dnsmasqCaps *dnsmasqCapsNewFromBuffer(const char *buf,
                                         const char *binaryPath);
 dnsmasqCaps *dnsmasqCapsNewFromBinary(const char *binaryPath);
-int dnsmasqCapsRefresh(dnsmasqCaps **caps, const char *binaryPath);
 bool dnsmasqCapsGet(dnsmasqCaps *caps, dnsmasqCapsFlags flag);
 const char *dnsmasqCapsGetBinaryPath(dnsmasqCaps *caps);
 unsigned long dnsmasqCapsGetVersion(dnsmasqCaps *caps);