Remove code block without effect.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 12 Sep 2013 05:41:38 +0000 (07:41 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 12 Sep 2013 05:41:38 +0000 (07:41 +0200)
src/main/java/net/pterodactylus/sone/template/SubstringFilter.java

index 913e058..6efc5ed 100644 (file)
@@ -48,12 +48,6 @@ public class SubstringFilter implements Filter {
                }
                String dataString = String.valueOf(data);
                int dataLength = dataString.length();
-               if (lengthString == null) {
-                       if (start < 0) {
-                               return dataString.substring(dataLength + start);
-                       }
-                       return dataString.substring(start);
-               }
                int length = Integer.MAX_VALUE;
                try {
                        length = Integer.parseInt(lengthString);