virdnsmasq: Drop dnsmasqCapsNewFromBuffer()

The function is no longer used. Remove it.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Andrea Bolognani <abologna@redhat.com>
This commit is contained in:
Michal Privoznik 2022-01-12 05:56:42 +01:00
parent 2fc6adcb30
commit d730392293
3 changed files with 0 additions and 16 deletions

View File

@ -2117,7 +2117,6 @@ dnsmasqAddDhcpHost;
dnsmasqAddHost; dnsmasqAddHost;
dnsmasqCapsGetBinaryPath; dnsmasqCapsGetBinaryPath;
dnsmasqCapsNewFromBinary; dnsmasqCapsNewFromBinary;
dnsmasqCapsNewFromBuffer;
dnsmasqContextFree; dnsmasqContextFree;
dnsmasqContextNew; dnsmasqContextNew;
dnsmasqDelete; dnsmasqDelete;

View File

@ -680,20 +680,6 @@ dnsmasqCapsNewEmpty(void)
return g_steal_pointer(&caps); 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 * dnsmasqCaps *
dnsmasqCapsNewFromBinary(void) dnsmasqCapsNewFromBinary(void)
{ {

View File

@ -91,7 +91,6 @@ int dnsmasqSave(const dnsmasqContext *ctx);
int dnsmasqDelete(const dnsmasqContext *ctx); int dnsmasqDelete(const dnsmasqContext *ctx);
int dnsmasqReload(pid_t pid); int dnsmasqReload(pid_t pid);
dnsmasqCaps *dnsmasqCapsNewFromBuffer(const char *buf);
dnsmasqCaps *dnsmasqCapsNewFromBinary(void); dnsmasqCaps *dnsmasqCapsNewFromBinary(void);
const char *dnsmasqCapsGetBinaryPath(dnsmasqCaps *caps); const char *dnsmasqCapsGetBinaryPath(dnsmasqCaps *caps);
char *dnsmasqDhcpHostsToString(dnsmasqDhcpHost *hosts, char *dnsmasqDhcpHostsToString(dnsmasqDhcpHost *hosts,