mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-27 07:22:07 +03: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;
|
||||
dnsmasqCapsNewFromBinary;
|
||||
dnsmasqCapsNewFromBuffer;
|
||||
dnsmasqCapsRefresh;
|
||||
dnsmasqContextFree;
|
||||
dnsmasqContextNew;
|
||||
dnsmasqDelete;
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user