diff options
| author | Benjamin J. Culkin <bjculkin@mix.wvu.edu> | 2020-03-24 15:52:39 -0300 |
|---|---|---|
| committer | Benjamin J. Culkin <bjculkin@mix.wvu.edu> | 2020-03-24 15:52:39 -0300 |
| commit | e1b0b2fa0d6bc3dd114713b3fe2f021f0da74c38 (patch) | |
| tree | cca812682a4c53bdde6793cc29cf566a39a1c67d /src/main/java | |
| parent | b07c320acf7f75ca47c2e2e16708e7865a548c88 (diff) | |
| parent | 7689fed35a28630a8c7943fda776da43c743f3f0 (diff) | |
Merge branch 'master' of https://github.com/bculkin2442/tlIItools
Diffstat (limited to 'src/main/java')
| -rw-r--r-- | src/main/java/tlIItools/AffixLister.java | 8 | ||||
| -rw-r--r-- | src/main/java/tlIItools/NameFileReader.java | 6 |
2 files changed, 2 insertions, 12 deletions
diff --git a/src/main/java/tlIItools/AffixLister.java b/src/main/java/tlIItools/AffixLister.java index 76e93996..b241caf5 100644 --- a/src/main/java/tlIItools/AffixLister.java +++ b/src/main/java/tlIItools/AffixLister.java @@ -5,13 +5,10 @@ import java.io.FileReader; import java.io.PrintStream; import java.util.ArrayList; -import java.util.HashMap; -import java.util.HashSet; import java.util.List; import java.util.Map; import java.util.Map.Entry; import java.util.Scanner; -import java.util.Set; /** * Lists randomly generated affixes for Torchlight II gear. @@ -80,7 +77,6 @@ public class AffixLister { boolean omitZeros = false; boolean listZeros = false; - boolean guessGroups = false; NameMode nameMode = NameMode.ALL; @@ -93,8 +89,6 @@ public class AffixLister { List<Affix> nonGroupContents = afst.ungroupedAffixes; - int argCount = 0; - NameFileReader nfr = new NameFileReader(false); nfr.groupRx = ".*/mods/([^/]+)/*"; @@ -231,8 +225,6 @@ public class AffixLister { } if (isArg) { - argCount += 1; - continue; } diff --git a/src/main/java/tlIItools/NameFileReader.java b/src/main/java/tlIItools/NameFileReader.java index ad2a83b4..c63ac417 100644 --- a/src/main/java/tlIItools/NameFileReader.java +++ b/src/main/java/tlIItools/NameFileReader.java @@ -111,8 +111,6 @@ public class NameFileReader { * @return The number of files read. */ public void readFrom(String from) { - int ret; - try (FileReader fr = new FileReader(from)) { readFrom(fr); } catch (IOException ioex) { @@ -131,8 +129,6 @@ public class NameFileReader { * @return The number of files read. */ public void readFrom(Reader r) { - int numFiles = 0; - Scanner scn = new Scanner(r); while (scn.hasNextLine()) { @@ -156,6 +152,8 @@ public class NameFileReader { skipAdd = false; } + + scn.close(); } /** |
