Loading java/src/com/android/inputmethod/latin/WordComposer.java +0 −21 Original line number Diff line number Diff line Loading @@ -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; Loading Loading @@ -275,24 +272,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. Loading Loading
java/src/com/android/inputmethod/latin/WordComposer.java +0 −21 Original line number Diff line number Diff line Loading @@ -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; Loading Loading @@ -275,24 +272,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. Loading