From afcfd4827f3d7190004ce2dad92508aea5a9934e Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Thu, 12 Sep 2013 07:41:38 +0200 Subject: [PATCH] Remove code block without effect. --- src/main/java/net/pterodactylus/sone/template/SubstringFilter.java | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/main/java/net/pterodactylus/sone/template/SubstringFilter.java b/src/main/java/net/pterodactylus/sone/template/SubstringFilter.java index 913e058..6efc5ed 100644 --- a/src/main/java/net/pterodactylus/sone/template/SubstringFilter.java +++ b/src/main/java/net/pterodactylus/sone/template/SubstringFilter.java @@ -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); -- 2.7.4