From 15644eff8d17db4e8497217bc55005af01a1cd63 Mon Sep 17 00:00:00 2001 From: Abodunrinwa Toki Date: Wed, 3 May 2017 21:10:20 +0100 Subject: [PATCH] TextClassifier: Remove debug logs. Test: bit FrameworksCoreTests:android.view.textclassifier.TextClassificationManagerTest Bug: 34778895 Change-Id: I1478fe1a2849b1d4661a71ecbf9a27f38430ee28 --- .../android/view/textclassifier/TextClassifierImpl.java | 8 -------- 1 file changed, 8 deletions(-) diff --git a/core/java/android/view/textclassifier/TextClassifierImpl.java b/core/java/android/view/textclassifier/TextClassifierImpl.java index 209ff097f9e6c..a081f0b34a55c 100644 --- a/core/java/android/view/textclassifier/TextClassifierImpl.java +++ b/core/java/android/view/textclassifier/TextClassifierImpl.java @@ -144,9 +144,6 @@ final class TextClassifierImpl implements TextClassifier { final TextClassification classificationResult = createClassificationResult( results, string.subSequence(startIndex, endIndex)); - // TODO: Added this log for debug only. Remove before release. - Log.d(LOG_TAG, String.format( - "Classification type: %s", classificationResult)); return classificationResult; } } @@ -377,11 +374,6 @@ final class TextClassifierImpl implements TextClassifier { && Linkify.sUrlMatchFilter.acceptMatch(text, start, end)) { flag |= SmartSelection.HINT_FLAG_URL; } - // TODO: Added this log for debug only. Remove before release. - Log.d(LOG_TAG, String.format("Email hint: %b", - (flag & SmartSelection.HINT_FLAG_EMAIL) != 0)); - Log.d(LOG_TAG, String.format("Url hint: %b", - (flag & SmartSelection.HINT_FLAG_URL) != 0)); return flag; }