IOS: delete unused local state
@@ -1328,9 +1328,6 @@ public class CiscoControlPlaneExtractor extends CiscoParserBaseListener
private CiscoConfiguration _configuration;
- @SuppressWarnings("unused")
- private List<AaaAccountingCommands> _currentAaaAccountingCommands;
-
private AaaAuthenticationLoginList _currentAaaAuthenticationLoginList;
private IpAsPathAccessList _currentAsPathAcl;
@@ -1377,9 +1374,6 @@ public class CiscoControlPlaneExtractor extends CiscoParserBaseListener
private List<String> _currentLineNames;
- @SuppressWarnings("unused")
- private MacAccessList _currentMacAccessList;
-
private NamedBgpPeerGroup _currentNamedPeerGroup;
private CiscoIosNat.Direction _currentIosNatDirection;
@@ -1567,7 +1561,6 @@ public class CiscoControlPlaneExtractor extends CiscoParserBaseListener
AaaAccountingCommands c = commands.computeIfAbsent(level, k -> new AaaAccountingCommands());
currentAaaAccountingCommands.add(c);
}
- _currentAaaAccountingCommands = currentAaaAccountingCommands;
}
@Override
@@ -3287,7 +3280,6 @@ public class CiscoControlPlaneExtractor extends CiscoParserBaseListener
@Override
public void enterS_mac_access_list(S_mac_access_listContext ctx) {
String name = ctx.num.getText();
- _currentMacAccessList =
_configuration.getMacAccessLists().computeIfAbsent(name, MacAccessList::new);
_configuration.defineStructure(MAC_ACCESS_LIST, name, ctx);
}
@@ -3303,7 +3295,6 @@ public class CiscoControlPlaneExtractor extends CiscoParserBaseListener
} else {
throw new BatfishException("Could not determine name of extended mac access-list");
}
- _currentMacAccessList =
_configuration.getMacAccessLists().computeIfAbsent(name, MacAccessList::new);
_configuration.defineStructure(MAC_ACCESS_LIST, name, ctx);
}
@@ -3598,11 +3589,6 @@ public class CiscoControlPlaneExtractor extends CiscoParserBaseListener
INTERFACE, _currentVrrpInterface, ROUTER_VRRP_INTERFACE, ctx.iface.getStart().getLine());
}
- @Override
- public void exitAaa_accounting_commands_line(Aaa_accounting_commands_lineContext ctx) {
- _currentAaaAccountingCommands = null;
- }
-
@Override
public void exitAaa_accounting_default_group(Aaa_accounting_default_groupContext ctx) {
List<String> groups =
