mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 21:55:25 +00:00
Remove nwfilter tech driver 'displayRuleInstance' callback
The 'displayRuleInstance' callback in the nwfilter tech driver is never invoked, so can be deleted. Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
This commit is contained in:
parent
9b8aef1a02
commit
143a8a3038
@ -2781,17 +2781,6 @@ ebiptablesFreeRuleInstance(void *_inst)
|
||||
}
|
||||
|
||||
|
||||
static int
|
||||
ebiptablesDisplayRuleInstance(void *_inst)
|
||||
{
|
||||
ebiptablesRuleInstPtr inst = (ebiptablesRuleInstPtr)_inst;
|
||||
VIR_INFO("Command Template: '%s', Needed protocol: '%s'",
|
||||
inst->commandTemplate,
|
||||
inst->neededProtocolChain);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* ebiptablesExecCLI:
|
||||
* @buf: pointer to virBuffer containing the string with the commands to
|
||||
@ -4105,7 +4094,6 @@ virNWFilterTechDriver ebiptables_driver = {
|
||||
.tearOldRules = ebiptablesTearOldRules,
|
||||
.allTeardown = ebiptablesAllTeardown,
|
||||
.freeRuleInstance = ebiptablesFreeRuleInstance,
|
||||
.displayRuleInstance = ebiptablesDisplayRuleInstance,
|
||||
|
||||
.canApplyBasicRules = ebiptablesCanApplyBasicRules,
|
||||
.applyBasicRules = ebtablesApplyBasicRules,
|
||||
|
@ -62,8 +62,6 @@ typedef int (*virNWFilterRuleAllTeardown)(const char *ifname);
|
||||
|
||||
typedef int (*virNWFilterRuleFreeInstanceData)(void * _inst);
|
||||
|
||||
typedef int (*virNWFilterRuleDisplayInstanceData)(void *_inst);
|
||||
|
||||
typedef int (*virNWFilterCanApplyBasicRules)(void);
|
||||
|
||||
typedef int (*virNWFilterApplyBasicRules)(const char *ifname,
|
||||
@ -95,7 +93,6 @@ struct _virNWFilterTechDriver {
|
||||
virNWFilterRuleTeardownOldRules tearOldRules;
|
||||
virNWFilterRuleAllTeardown allTeardown;
|
||||
virNWFilterRuleFreeInstanceData freeRuleInstance;
|
||||
virNWFilterRuleDisplayInstanceData displayRuleInstance;
|
||||
|
||||
virNWFilterCanApplyBasicRules canApplyBasicRules;
|
||||
virNWFilterApplyBasicRules applyBasicRules;
|
||||
|
Loading…
Reference in New Issue
Block a user