From: David ‘Bombe’ Roden Date: Thu, 12 Sep 2013 05:41:38 +0000 (+0200) Subject: Remove code block without effect. X-Git-Tag: 0.8.7^2~16 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=afcfd4827f3d7190004ce2dad92508aea5a9934e;p=Sone.git Remove code block without effect. --- 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);