Remove useless lines.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 22 Jul 2011 21:43:12 +0000 (23:43 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 22 Jul 2011 21:43:12 +0000 (23:43 +0200)
src/main/java/net/pterodactylus/sone/text/SoneTextParser.java

index 9754ac4..4195516 100644 (file)
@@ -202,8 +202,6 @@ public class SoneTextParser implements Parser<SoneTextParserContext> {
                                                String postId = line.substring(next + 7, next + 43);
                                                Post post = postProvider.getPost(postId, false);
                                                if ((post != null) && (post.getSone() != null)) {
-                                                       String postText = post.getText();
-                                                       postText = postText.substring(0, Math.min(postText.length(), 20)) + "…";
                                                        parts.add(new PostPart(post));
                                                } else {
                                                        parts.add(new PlainTextPart(line.substring(next, next + 43)));