aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/WordComposer.java
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2013-12-27 21:41:04 +0900
committerJean Chalard <jchalard@google.com>2014-01-23 15:52:29 +0900
commitbe846fc352adadaed6d3676ef84f2e3d00fbeaff (patch)
tree288d3b2db6ddfc9c2bc51ded7802e76e890c7775 /java/src/com/android/inputmethod/latin/WordComposer.java
parentdf8310c6e21b5bcf825d97ed5eb3816bb7ce1b28 (diff)
downloadlatinime-be846fc352adadaed6d3676ef84f2e3d00fbeaff.tar.gz
latinime-be846fc352adadaed6d3676ef84f2e3d00fbeaff.tar.xz
latinime-be846fc352adadaed6d3676ef84f2e3d00fbeaff.zip
[IL73] Remove all refs to Key and Keyboard in WordComposer
Please hold my gun while I have this nice cup of tea. Yes !! Bug: 8636060 Change-Id: I33c8ffe51bb2106b17f7941235ad1e427e3a81f7
Diffstat (limited to 'java/src/com/android/inputmethod/latin/WordComposer.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.