Skip to content

Commit fca5de9

Browse files
committed
Remove unnecessary array
Usage of this array seems to have been dropped by lightbend#280, but the array remained. Cleaning up so it doesn't allocate the array needlessly anymore. Fixes lightbend#730.
1 parent f92a4ee commit fca5de9

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

config/src/main/java/com/typesafe/config/impl/PathParser.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,8 +258,6 @@ private static boolean looksUnsafeForFastParser(String s) {
258258
private static Path fastPathBuild(Path tail, String s, int end) {
259259
// lastIndexOf takes last index it should look at, end - 1 not end
260260
int splitAt = s.lastIndexOf('.', end - 1);
261-
ArrayList<Token> tokens = new ArrayList<Token>();
262-
tokens.add(Tokens.newUnquotedText(null, s));
263261
// this works even if splitAt is -1; then we start the substring at 0
264262
Path withOneMoreElement = new Path(s.substring(splitAt + 1, end), tail);
265263
if (splitAt < 0) {

0 commit comments

Comments
 (0)