Skip to content

Commit

Permalink
Remove obsolete code in processInfoNode
Browse files Browse the repository at this point in the history
  • Loading branch information
sixlettervariables committed Dec 15, 2020
1 parent 4f6987d commit 3c84208
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions MekHQ/src/mekhq/campaign/io/CampaignXmlParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,6 @@ private static void processInfoNode(Campaign retVal, Node wni, Version version)

String rankNames = null;
int officerCut = 0;
int rankSystem = -1;

// Okay, lets iterate through the children, eh?
for (int x = 0; x < nl.getLength(); x++) {
Expand Down Expand Up @@ -728,10 +727,6 @@ private static void processInfoNode(Campaign retVal, Node wni, Version version)
//backwards compatibility
retVal.getRanks().setRanksFromList(rankNames, officerCut);
}
if (rankSystem != -1) {
retVal.setRanks(Ranks.getRanksFromSystem(rankSystem));
retVal.getRanks().setOldRankSystem(rankSystem);
}

// TODO: this could probably be better
retVal.setCurrentReportHTML(Utilities.combineString(retVal.getCurrentReport(), Campaign.REPORT_LINEBREAK));
Expand Down

0 comments on commit 3c84208

Please sign in to comment.