mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-24 14:45:24 +00:00
virdnsmasq: drop unused dnsmasqCapsRefresh function
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>
This commit is contained in:
parent
033c21a8ee
commit
6df8455aac
@ -2091,7 +2091,6 @@ dnsmasqCapsGetBinaryPath;
|
|||||||
dnsmasqCapsGetVersion;
|
dnsmasqCapsGetVersion;
|
||||||
dnsmasqCapsNewFromBinary;
|
dnsmasqCapsNewFromBinary;
|
||||||
dnsmasqCapsNewFromBuffer;
|
dnsmasqCapsNewFromBuffer;
|
||||||
dnsmasqCapsRefresh;
|
|
||||||
dnsmasqContextFree;
|
dnsmasqContextFree;
|
||||||
dnsmasqContextNew;
|
dnsmasqContextNew;
|
||||||
dnsmasqDelete;
|
dnsmasqDelete;
|
||||||
|
@ -773,23 +773,6 @@ dnsmasqCapsNewFromBinary(const char *binaryPath)
|
|||||||
return caps;
|
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 *
|
const char *
|
||||||
dnsmasqCapsGetBinaryPath(dnsmasqCaps *caps)
|
dnsmasqCapsGetBinaryPath(dnsmasqCaps *caps)
|
||||||
{
|
{
|
||||||
|
@ -102,7 +102,6 @@ int dnsmasqReload(pid_t pid);
|
|||||||
dnsmasqCaps *dnsmasqCapsNewFromBuffer(const char *buf,
|
dnsmasqCaps *dnsmasqCapsNewFromBuffer(const char *buf,
|
||||||
const char *binaryPath);
|
const char *binaryPath);
|
||||||
dnsmasqCaps *dnsmasqCapsNewFromBinary(const char *binaryPath);
|
dnsmasqCaps *dnsmasqCapsNewFromBinary(const char *binaryPath);
|
||||||
int dnsmasqCapsRefresh(dnsmasqCaps **caps, const char *binaryPath);
|
|
||||||
bool dnsmasqCapsGet(dnsmasqCaps *caps, dnsmasqCapsFlags flag);
|
bool dnsmasqCapsGet(dnsmasqCaps *caps, dnsmasqCapsFlags flag);
|
||||||
const char *dnsmasqCapsGetBinaryPath(dnsmasqCaps *caps);
|
const char *dnsmasqCapsGetBinaryPath(dnsmasqCaps *caps);
|
||||||
unsigned long dnsmasqCapsGetVersion(dnsmasqCaps *caps);
|
unsigned long dnsmasqCapsGetVersion(dnsmasqCaps *caps);
|
||||||
|
Loading…
Reference in New Issue
Block a user