aboutsummaryrefslogtreecommitdiffstats
path: root/java/src
diff options
context:
space:
mode:
authorKurt Partridge <kep@google.com>2013-03-14 06:16:16 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2013-03-14 06:16:16 -0700
commit60f565caabfaff4e1dcbdaf9def79368a0275f75 (patch)
tree764a1f6283845e4c23ec41ae7e0ed0b2076b1709 /java/src
parentba948737034751935f2b96db0c9132191c973a05 (diff)
parent7faa2caa80ea3b07ab317a5aa92bd048b574af27 (diff)
downloadlatinime-60f565caabfaff4e1dcbdaf9def79368a0275f75.tar.gz
latinime-60f565caabfaff4e1dcbdaf9def79368a0275f75.tar.xz
latinime-60f565caabfaff4e1dcbdaf9def79368a0275f75.zip
am 7faa2caa: Merge "[Lazy4] Remove useless debug code"
* commit '7faa2caa80ea3b07ab317a5aa92bd048b574af27': [Lazy4] Remove useless debug code
Diffstat (limited to 'java/src')
-rw-r--r--java/src/com/android/inputmethod/research/LogUnit.java33
1 files changed, 0 insertions, 33 deletions
diff --git a/java/src/com/android/inputmethod/research/LogUnit.java b/java/src/com/android/inputmethod/research/LogUnit.java
index 839e2b7ba..61b6df0f4 100644
--- a/java/src/com/android/inputmethod/research/LogUnit.java
+++ b/java/src/com/android/inputmethod/research/LogUnit.java
@@ -119,22 +119,6 @@ public class LogUnit {
*/
public synchronized void publishTo(final ResearchLog researchLog,
final boolean canIncludePrivateData) {
- // Prepare debugging output if necessary
- final StringWriter debugStringWriter;
- final JsonWriter debugJsonWriter;
- if (DEBUG) {
- debugStringWriter = new StringWriter();
- debugJsonWriter = new JsonWriter(debugStringWriter);
- debugJsonWriter.setIndent(" ");
- try {
- debugJsonWriter.beginArray();
- } catch (IOException e) {
- Log.e(TAG, "Could not open array in JsonWriter", e);
- }
- } else {
- debugStringWriter = null;
- debugJsonWriter = null;
- }
// Write out any logStatement that passes the privacy filter.
final int size = mLogStatementList.size();
if (size != 0) {
@@ -157,29 +141,12 @@ public class LogUnit {
outputLogUnitStart(jsonWriter, canIncludePrivateData);
}
logStatement.outputToLocked(jsonWriter, mTimeList.get(i), mValuesList.get(i));
- if (DEBUG) {
- logStatement.outputToLocked(debugJsonWriter, mTimeList.get(i),
- mValuesList.get(i));
- }
}
if (jsonWriter != null) {
// We must have called logUnitStart earlier, so emit a logUnitStop.
outputLogUnitStop(jsonWriter);
}
}
- if (DEBUG) {
- try {
- debugJsonWriter.endArray();
- debugJsonWriter.flush();
- } catch (IOException e) {
- Log.e(TAG, "Could not close array in JsonWriter", e);
- }
- final String bigString = debugStringWriter.getBuffer().toString();
- final String[] lines = bigString.split("\n");
- for (String line : lines) {
- Log.d(TAG, line);
- }
- }
}
private static final String WORD_KEY = "_wo";