aboutsummaryrefslogtreecommitdiff
path: root/server-core/src/main/java/com/juick
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2016-11-16 12:10:32 +0300
committerGravatar Vitaly Takmazov2016-11-16 16:21:43 +0300
commitb11a395c46aa92179a4a6019d2ebef15877b3946 (patch)
tree7ab510a4d8a134c17e80795b76b7e153e74b4536 /server-core/src/main/java/com/juick
parent96dc5157a2a0979dbe2511366cb3bec6d16c4e7e (diff)
formatMessage moved to core, remove copy-paste from juick-rss
Diffstat (limited to 'server-core/src/main/java/com/juick')
-rw-r--r--server-core/src/main/java/com/juick/util/MessageUtils.java24
1 files changed, 0 insertions, 24 deletions
diff --git a/server-core/src/main/java/com/juick/util/MessageUtils.java b/server-core/src/main/java/com/juick/util/MessageUtils.java
deleted file mode 100644
index 1e8165c36..000000000
--- a/server-core/src/main/java/com/juick/util/MessageUtils.java
+++ /dev/null
@@ -1,24 +0,0 @@
-package com.juick.util;
-
-/**
- * Created by aalexeev on 11/13/16.
- */
-public class MessageUtils {
- private MessageUtils() {
- throw new IllegalStateException();
- }
-
- public static String formatQuote(final String quote) {
- String result = quote;
-
- if (quote != null) {
- if (quote.length() > 50) {
- result = ">" + quote.substring(0, 47).replace('\n', ' ') + "...\n";
- } else if (!quote.isEmpty()) {
- result = ">" + quote.replace('\n', ' ') + "\n";
- }
- }
-
- return result;
- }
-}