diff --git a/config/src/main/java/com/typesafe/config/impl/PathParser.java b/config/src/main/java/com/typesafe/config/impl/PathParser.java index 8961cb711..0c41812c4 100644 --- a/config/src/main/java/com/typesafe/config/impl/PathParser.java +++ b/config/src/main/java/com/typesafe/config/impl/PathParser.java @@ -258,8 +258,6 @@ private static boolean looksUnsafeForFastParser(String s) { private static Path fastPathBuild(Path tail, String s, int end) { // lastIndexOf takes last index it should look at, end - 1 not end int splitAt = s.lastIndexOf('.', end - 1); - ArrayList tokens = new ArrayList(); - tokens.add(Tokens.newUnquotedText(null, s)); // this works even if splitAt is -1; then we start the substring at 0 Path withOneMoreElement = new Path(s.substring(splitAt + 1, end), tail); if (splitAt < 0) {