Skip to content

Commit

Permalink
Remove obsolete comments in CampaignXmlParser
Browse files Browse the repository at this point in the history
The outdated comments regarding SpecialAbility and error handling in processAutomatedMothballNodes were removed. This cleanup improves code readability and maintains the focus on current logic.
  • Loading branch information
IllianiCBT committed Nov 5, 2024
1 parent a87ea8e commit 9f4df35
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions MekHQ/src/mekhq/campaign/io/CampaignXmlParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -942,7 +942,6 @@ private static void processFameAndInfamyNodes(Campaign relativeValue, Node worki
private static List<Unit> processAutomatedMothballNodes(Node workingNode, Campaign campaign) {
logger.info("Loading Automated Mothball Nodes from XML...");

// TODO: make SpecialAbility a Campaign instance
List<Unit> mothballedUnits = new ArrayList<>();

NodeList workingList = workingNode.getChildNodes();
Expand All @@ -955,8 +954,6 @@ private static List<Unit> processAutomatedMothballNodes(Node workingNode, Campai
}

if (!childNode.getNodeName().equalsIgnoreCase("mothballedUnit")) {
// Error condition of sorts!
// Errr, what should we do here?
logger.error("Unknown node type not loaded in Automated Mothball nodes: "
+ childNode.getNodeName());
continue;
Expand Down

0 comments on commit 9f4df35

Please sign in to comment.