diff options
author | 2014-06-27 21:57:57 +0900 | |
---|---|---|
committer | 2014-07-01 13:34:25 +0900 | |
commit | 20c89b1cf5e30026844922d312163ffcd1c20b26 (patch) | |
tree | fc8f4fa611f8b65efad59442166359c93fdc7bd7 /java/src/com/android/inputmethod/latin/RichInputConnection.java | |
parent | 87d907bda94a05e4ea503ae2a269eb444c10ae35 (diff) | |
download | latinime-20c89b1cf5e30026844922d312163ffcd1c20b26.tar.gz latinime-20c89b1cf5e30026844922d312163ffcd1c20b26.tar.xz latinime-20c89b1cf5e30026844922d312163ffcd1c20b26.zip |
[SD5(2)] Remove useless args
Bug: 15840116
Change-Id: I1123426fbd9d420c1be64ccc917a5f870e70e6fa
Diffstat (limited to 'java/src/com/android/inputmethod/latin/RichInputConnection.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/RichInputConnection.java | 18 |
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; |