aboutsummaryrefslogtreecommitdiffstats
path: root/java/src
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2012-06-28 18:45:16 +0900
committerJean Chalard <jchalard@google.com>2012-06-29 17:00:57 +0900
commit9011b89f4ea0d73f1ad78b2dd0a6557b950fddd9 (patch)
tree5ab5c56a4f8fd84ad028dae69103b07484d8bc5d /java/src
parent2cda148fd5aa047dca6dfd5d78db548a7a8e2bc0 (diff)
downloadlatinime-9011b89f4ea0d73f1ad78b2dd0a6557b950fddd9.tar.gz
latinime-9011b89f4ea0d73f1ad78b2dd0a6557b950fddd9.tar.xz
latinime-9011b89f4ea0d73f1ad78b2dd0a6557b950fddd9.zip
Remove cruft (A32)
Change-Id: I35c2ba4caf6be4ba0449e11c0597ae8e468c0e6e
Diffstat (limited to 'java/src')
-rw-r--r--java/src/com/android/inputmethod/latin/Suggest.java8
1 files changed, 1 insertions, 7 deletions
diff --git a/java/src/com/android/inputmethod/latin/Suggest.java b/java/src/com/android/inputmethod/latin/Suggest.java
index 0af08084f..70751c107 100644
--- a/java/src/com/android/inputmethod/latin/Suggest.java
+++ b/java/src/com/android/inputmethod/latin/Suggest.java
@@ -38,8 +38,6 @@ import java.util.concurrent.ConcurrentHashMap;
public class Suggest {
public static final String TAG = Suggest.class.getSimpleName();
- public static final int APPROX_MAX_WORD_LENGTH = 32;
-
// TODO: rename this to CORRECTION_OFF
public static final int CORRECTION_NONE = 0;
// TODO: rename this to CORRECTION_ON
@@ -132,10 +130,6 @@ public class Suggest {
return mDictionaries;
}
- public static int getApproxMaxWordLength() {
- return APPROX_MAX_WORD_LENGTH;
- }
-
/**
* Sets an optional user dictionary resource to be loaded. The user dictionary is consulted
* before the main dictionary, if set. This refers to the system-managed user dictionary.
@@ -351,7 +345,7 @@ public class Suggest {
private static SuggestedWordInfo getTransformedSuggestedWordInfo(
final SuggestedWordInfo wordInfo, final Locale locale, final boolean isAllUpperCase,
final boolean isFirstCharCapitalized, final int trailingSingleQuotesCount) {
- final StringBuilder sb = new StringBuilder(getApproxMaxWordLength());
+ final StringBuilder sb = new StringBuilder(wordInfo.mWord.length());
if (isAllUpperCase) {
sb.append(wordInfo.mWord.toString().toUpperCase(locale));
} else if (isFirstCharCapitalized) {