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

Unified Diff: src/org/adblockplus/android/AdblockPlus.java

Issue 5662276015095808: Issue 1540 - Utility method for loading text is at the wrong location (Closed)
Patch Set: Created Nov. 6, 2014, 1:06 p.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
Index: src/org/adblockplus/android/AdblockPlus.java
diff --git a/src/org/adblockplus/android/AdblockPlus.java b/src/org/adblockplus/android/AdblockPlus.java
index 1818febdc881a3820ed46fdedfdb36fbe1d2a6b1..e74e760fcf9cf7ce32f441735cef0a84ca8cfeca 100755
--- a/src/org/adblockplus/android/AdblockPlus.java
+++ b/src/org/adblockplus/android/AdblockPlus.java
@@ -17,11 +17,9 @@
package org.adblockplus.android;
-import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
-import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.List;
import java.util.regex.Pattern;
@@ -143,25 +141,6 @@ public class AdblockPlus extends Application
return Utils.capitalizeString(manufacturer) + " " + model;
}
- public static void appendRawTextFile(final Context context, final StringBuilder text, final int id)
- {
- // TODO: What about closing the resources?
- final InputStream inputStream = context.getResources().openRawResource(id);
- final InputStreamReader in = new InputStreamReader(inputStream);
- final BufferedReader buf = new BufferedReader(in);
- String line;
- try
- {
- while ((line = buf.readLine()) != null)
- text.append(line);
- }
- catch (final IOException e)
- {
- // TODO: How about real logging?
- e.printStackTrace();
- }
- }
-
/**
* Checks if device has a WiFi connection available.
*/

Powered by Google App Engine
This is Rietveld