From 741aa0dfa54aa46b364ec20d885f4f494ee85527 Mon Sep 17 00:00:00 2001 From: zerrium Date: Fri, 19 Mar 2021 16:17:02 +0700 Subject: [PATCH] Removed unused class --- .../java/zerrium/FilterKeywordsUtility.java | 31 ------------------- app/src/main/res/values/filter_keyword.xml | 21 ------------- 2 files changed, 52 deletions(-) delete mode 100644 app/src/main/java/zerrium/FilterKeywordsUtility.java delete mode 100644 app/src/main/res/values/filter_keyword.xml diff --git a/app/src/main/java/zerrium/FilterKeywordsUtility.java b/app/src/main/java/zerrium/FilterKeywordsUtility.java deleted file mode 100644 index ecb97b2c..00000000 --- a/app/src/main/java/zerrium/FilterKeywordsUtility.java +++ /dev/null @@ -1,31 +0,0 @@ -package zerrium; - -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import java.util.Locale; - -public abstract class FilterKeywordsUtility { - private static final List FILTER_KEYWORDS = new ArrayList<>(); - - public static boolean append(final String keyword){ - if(keyword == null) return false; - FILTER_KEYWORDS.add(keyword); - return true; - } - - public static boolean insert(final String[] keywords){ - if(keywords == null) return false; - FILTER_KEYWORDS.addAll(Arrays.asList(keywords)); - return true; - } - - public static boolean filter(String caption){ - if(caption == null) return false; - String temp = caption.toLowerCase(Locale.getDefault()); - for(final String s:FILTER_KEYWORDS){ - if(temp.contains(s)) return true; - } - return false; - } -} diff --git a/app/src/main/res/values/filter_keyword.xml b/app/src/main/res/values/filter_keyword.xml deleted file mode 100644 index c2a7264a..00000000 --- a/app/src/main/res/values/filter_keyword.xml +++ /dev/null @@ -1,21 +0,0 @@ - - - - paid promote - endorse - endorsement - paid-promote - paid_promote - paid.promote - paidpromote - advertisement - p41d pr0m0t3 - p@1d pr0m0t3 - sponsor - sp0ns0r - 3nd0r53 - iklan - 1kl@n - 1kl4n - - \ No newline at end of file