From e689d37f720ef47f24fcfb5dde9c2754dfcd6f45 Mon Sep 17 00:00:00 2001 From: Jean Chalard Date: Tue, 10 Jun 2014 12:47:38 +0900 Subject: Remove a useless method Change-Id: I21a4219f682f43f4a84b1ab12d00dd930b35caa1 --- .../android/inputmethod/latin/utils/StringUtils.java | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'java/src') diff --git a/java/src/com/android/inputmethod/latin/utils/StringUtils.java b/java/src/com/android/inputmethod/latin/utils/StringUtils.java index 4ed0f0a94..e4237a7f2 100644 --- a/java/src/com/android/inputmethod/latin/utils/StringUtils.java +++ b/java/src/com/android/inputmethod/latin/utils/StringUtils.java @@ -315,24 +315,6 @@ public final class StringUtils { return true; } - /** - * Returns true if all code points in text are whitespace, false otherwise. Empty is true. - */ - // Interestingly enough, U+00A0 NO-BREAK SPACE and U+200B ZERO-WIDTH SPACE are not considered - // whitespace, while EN SPACE, EM SPACE and IDEOGRAPHIC SPACES are. - public static boolean containsOnlyWhitespace(final String text) { - final int length = text.length(); - int i = 0; - while (i < length) { - final int codePoint = text.codePointAt(i); - if (!Character.isWhitespace(codePoint)) { - return false; - } - i += Character.charCount(codePoint); - } - return true; - } - public static boolean isIdenticalAfterCapitalizeEachWord(final String text, final int[] sortedSeparators) { boolean needsCapsNext = true; -- cgit v1.2.3-83-g751a