From 2d1c22a0159eda2464e4b885a4308e2c73adf480 Mon Sep 17 00:00:00 2001 From: Laine Stump Date: Sun, 13 Mar 2022 14:21:02 -0400 Subject: [PATCH] util: remove unused function virFirewallApplyRuleFirewallD() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Ján Tomko --- src/util/virfirewall.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/util/virfirewall.c b/src/util/virfirewall.c index 3183e0aec7..0a9ba9ad5c 100644 --- a/src/util/virfirewall.c +++ b/src/util/virfirewall.c @@ -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,