aboutsummaryrefslogtreecommitdiffstats
path: root/app/src/main/java/net/lacolaco/smileessence/twitter/util/TwitterUtils.java
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/java/net/lacolaco/smileessence/twitter/util/TwitterUtils.java')
-rw-r--r--app/src/main/java/net/lacolaco/smileessence/twitter/util/TwitterUtils.java23
1 files changed, 0 insertions, 23 deletions
diff --git a/app/src/main/java/net/lacolaco/smileessence/twitter/util/TwitterUtils.java b/app/src/main/java/net/lacolaco/smileessence/twitter/util/TwitterUtils.java
index 4d957f0b..7d1a0afc 100644
--- a/app/src/main/java/net/lacolaco/smileessence/twitter/util/TwitterUtils.java
+++ b/app/src/main/java/net/lacolaco/smileessence/twitter/util/TwitterUtils.java
@@ -47,29 +47,6 @@ import java.util.Collection;
public class TwitterUtils {
// -------------------------- STATIC METHODS --------------------------
- /**
- * Replace urls by entities
- *
- * @param text raw text
- * @param entities url entities
- * @param expand if true, use expanded url
- * @return replaced text
- */
- public static String replaceURLEntities(String text, URLEntity[] entities, boolean expand) {
- if (TextUtils.isEmpty(text)) {
- return "";
- } else if (entities == null) {
- return text;
- }
- if (entities.length == 0) {
- return text;
- }
- for (URLEntity entity : entities) {
- text = text.replace(entity.getURL(), expand ? entity.getExpandedURL() : entity.getDisplayURL());
- }
- return text;
- }
-
public static Paging getPaging(int count) {
return new Paging(1).count(count);
}