aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/RichInputConnection.java
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2014-07-01 02:14:07 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-06-26 23:14:30 +0000
commit256243dd03869dcd1b6844dcc83406aa9adba08e (patch)
tree57b8a4e0e1c274dd133d2679e708611702f52d4a /java/src/com/android/inputmethod/latin/RichInputConnection.java
parent09e3684144628261f3cda0c9df57af115e2f51e9 (diff)
parent1d300239612591879d535c20ade1f2712048170e (diff)
downloadlatinime-256243dd03869dcd1b6844dcc83406aa9adba08e.tar.gz
latinime-256243dd03869dcd1b6844dcc83406aa9adba08e.tar.xz
latinime-256243dd03869dcd1b6844dcc83406aa9adba08e.zip
Merge "[SD5] Remove useless args"
Diffstat (limited to 'java/src/com/android/inputmethod/latin/RichInputConnection.java')
-rw-r--r--java/src/com/android/inputmethod/latin/RichInputConnection.java18
1 files changed, 2 insertions, 16 deletions
diff --git a/java/src/com/android/inputmethod/latin/RichInputConnection.java b/java/src/com/android/inputmethod/latin/RichInputConnection.java
index 62b55bca1..96bf17b5c 100644
--- a/java/src/com/android/inputmethod/latin/RichInputConnection.java
+++ b/java/src/com/android/inputmethod/latin/RichInputConnection.java
@@ -620,27 +620,13 @@ public final class RichInputConnection {
}
/**
- * @param sortedSeparators a sorted array of code points which may separate words
- * @return the word that surrounds the cursor, including up to one trailing
- * separator. For example, if the field contains "he|llo world", where |
- * represents the cursor, then "hello " will be returned.
- */
- public CharSequence getWordAtCursor(final int[] sortedSeparators) {
- // getWordRangeAtCursor returns null if the connection is null
- final TextRange r = getWordRangeAtCursor(sortedSeparators, 0);
- return (r == null) ? null : r.mWord;
- }
-
- /**
* Returns the text surrounding the cursor.
*
* @param sortedSeparators a sorted array of code points that split words.
- * @param additionalPrecedingWordsCount the number of words before the current word that should
- * be included in the returned range
* @return a range containing the text surrounding the cursor
*/
- public TextRange getWordRangeAtCursor(final int[] sortedSeparators,
- final int additionalPrecedingWordsCount) {
+ public TextRange getWordRangeAtCursor(final int[] sortedSeparators) {
+ final int additionalPrecedingWordsCount = 0;
mIC = mParent.getCurrentInputConnection();
if (mIC == null) {
return null;