From f18bda60aa6fcddaa1e537e59d09879494b73aba Mon Sep 17 00:00:00 2001 From: Ken Wakasa Date: Tue, 16 Aug 2011 17:08:30 +0900 Subject: [PATCH] Code cleanup Change-Id: I7df8c813038adec750eda260740bcc8a4da41acf --- java/res/xml/method.xml | 4 +- .../inputmethod/keyboard/KeyboardView.java | 3 +- tests/res/raw/testtext.txt | 24 ---- .../latin/SuggestPerformanceTests.java | 134 ------------------ 4 files changed, 3 insertions(+), 162 deletions(-) delete mode 100644 tests/res/raw/testtext.txt delete mode 100644 tests/src/com/android/inputmethod/latin/SuggestPerformanceTests.java diff --git a/java/res/xml/method.xml b/java/res/xml/method.xml index fbbc7fbce..0bf560d5a 100644 --- a/java/res/xml/method.xml +++ b/java/res/xml/method.xml @@ -20,10 +20,8 @@ - - + - " + result + " % saved!"); - } else { - Slog.i(TAG, "without bigrams -> " + result + " % saved!"); - } - Slog.i(TAG, "\ttotal number of words: " + wordCount); - Slog.i(TAG, "\ttotal number of characters: " + mTestText.length()); - Slog.i(TAG, "\ttotal number of characters without space: " + characterCount); - Slog.i(TAG, "\ttotal number of characters typed: " + typeCount); - return result; - } - - - /************************** Performance Tests ************************/ - /** - * Compare the Suggest with and without bigram - * Check the log for detail - */ - public void testSuggestPerformance() { - assertTrue(runText(false) <= runText(true)); - } -}