aboutsummaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2014-01-23 17:58:29 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2014-01-23 17:58:29 -0800
commit9bbb214eddfaabd5d08b5771ee5ab3c5bf788114 (patch)
tree199c454e95580c4a76edefb02132deeb7b341858 /java
parent261d4944c4982d7f3e9b2e70edb2b91186aa28af (diff)
parent0c72529088e02d7dbe496397fbb64089b8acd594 (diff)
downloadlatinime-9bbb214eddfaabd5d08b5771ee5ab3c5bf788114.tar.gz
latinime-9bbb214eddfaabd5d08b5771ee5ab3c5bf788114.tar.xz
latinime-9bbb214eddfaabd5d08b5771ee5ab3c5bf788114.zip
am 0c725290: Merge "[IL73] Remove all refs to Key and Keyboard in WordComposer"
* commit '0c72529088e02d7dbe496397fbb64089b8acd594': [IL73] Remove all refs to Key and Keyboard in WordComposer
Diffstat (limited to 'java')
-rw-r--r--java/src/com/android/inputmethod/latin/WordComposer.java21
1 files changed, 0 insertions, 21 deletions
diff --git a/java/src/com/android/inputmethod/latin/WordComposer.java b/java/src/com/android/inputmethod/latin/WordComposer.java
index 6cd84016e..125976932 100644
--- a/java/src/com/android/inputmethod/latin/WordComposer.java
+++ b/java/src/com/android/inputmethod/latin/WordComposer.java
@@ -16,9 +16,6 @@
package com.android.inputmethod.latin;
-import com.android.inputmethod.annotations.UsedForTesting;
-import com.android.inputmethod.keyboard.Key;
-import com.android.inputmethod.keyboard.Keyboard;
import com.android.inputmethod.latin.utils.CoordinateUtils;
import com.android.inputmethod.latin.utils.StringUtils;
@@ -276,24 +273,6 @@ public final class WordComposer {
}
/**
- * Add a dummy key by retrieving reasonable coordinates
- */
- // TODO: make this private or remove it entirely. Right now it's used in the tests
- @UsedForTesting
- public void addKeyInfo(final int codePoint, final Keyboard keyboard) {
- final int x, y;
- final Key key;
- if (keyboard != null && (key = keyboard.getKey(codePoint)) != null) {
- x = key.getX() + key.getWidth() / 2;
- y = key.getY() + key.getHeight() / 2;
- } else {
- x = Constants.NOT_A_COORDINATE;
- y = Constants.NOT_A_COORDINATE;
- }
- add(codePoint, x, y);
- }
-
- /**
* Set the currently composing word to the one passed as an argument.
* This will register NOT_A_COORDINATE for X and Ys, and use the passed keyboard for proximity.
* @param codePoints the code points to set as the composing word.