Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: libadblockplus-android/src/org/adblockplus/libadblockplus/android/Utils.java

Issue 29415555: Issue 5148 - Remove Apache String Utils code (Closed)
Patch Set: Created April 17, 2017, 7:11 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | libadblockplus-android/src/org/apache/commons/lang/CharUtils.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: libadblockplus-android/src/org/adblockplus/libadblockplus/android/Utils.java
diff --git a/libadblockplus-android/src/org/adblockplus/libadblockplus/android/Utils.java b/libadblockplus-android/src/org/adblockplus/libadblockplus/android/Utils.java
index e755cc7f04eacfe6e38df08fe6147d5d9520b919..74798690fa55c63bfcbd07c501f28d3322693a4a 100644
--- a/libadblockplus-android/src/org/adblockplus/libadblockplus/android/Utils.java
+++ b/libadblockplus-android/src/org/adblockplus/libadblockplus/android/Utils.java
@@ -39,45 +39,6 @@ public final class Utils
return clazz.getSimpleName();
}
- public static String capitalizeString(final String s)
anton 2017/04/17 07:12:46 not used
- {
- if (s == null || s.length() == 0)
- {
- return "";
- }
-
- final char first = s.charAt(0);
-
- return Character.isUpperCase(first) ? s : Character.toUpperCase(first) + s.substring(1);
- }
-
- public static void appendRawTextFile(final Context context, final StringBuilder text, final int id)
anton 2017/04/17 07:12:46 not used
- {
- try
- {
- final BufferedReader buf = new BufferedReader(new InputStreamReader(context.getResources().openRawResource(id)));
-
- try
- {
- String line;
- while ((line = buf.readLine()) != null)
- {
- text.append(line);
- text.append('\n');
- }
- }
- finally
- {
- buf.close();
- }
-
- }
- catch (final Exception e)
- {
- // Ignored for now
- }
- }
-
public static String stringListToJsonArray(List<String> list)
{
JSONArray array = new JSONArray();
« no previous file with comments | « no previous file | libadblockplus-android/src/org/apache/commons/lang/CharUtils.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld