]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
util: remove unused function virFirewallApplyRuleFirewallD()
authorLaine Stump <laine@redhat.com>
Sun, 13 Mar 2022 18:21:02 +0000 (14:21 -0400)
committerLaine Stump <laine@redhat.com>
Wed, 24 Aug 2022 16:22:47 +0000 (12:22 -0400)
This was a wrapper to call a function in virfirewalld.c that sends an
iptables passthrough rule to firewalld. It hasn't been used in a year
or two, and won't ever be used in the future since passthrough rules
are only supported for iptables, and we've determined that we
shouldn't use iptables passthrough rules.

Signed-off-by: Laine Stump <laine@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/util/virfirewall.c

index 3183e0aec7bd567e115985d98c1174c74eff24cb..0a9ba9ad5cb0b1f1eb2a1fc7e8d3c9bbef3bb30d 100644 (file)
@@ -523,16 +523,6 @@ virFirewallApplyRuleDirect(virFirewallRule *rule,
 }
 
 
-static int G_GNUC_UNUSED
-virFirewallApplyRuleFirewallD(virFirewallRule *rule,
-                              bool ignoreErrors,
-                              char **output)
-{
-    /* wrapper necessary because virFirewallRule is a private struct */
-    return virFirewallDApplyRule(rule->layer, rule->args, rule->argsLen, ignoreErrors, output);
-}
-
-
 static int
 virFirewallApplyRule(virFirewall *firewall,
                      virFirewallRule *rule,