aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/RichInputConnection.java
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2014-07-01 05:37:17 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-07-01 05:37:17 +0000
commit434cf23ec9a39682fe132aed03db984dd67d2c1f (patch)
tree412c2ddc6207ca1e0818e1acb810e8727dfedfa1 /java/src/com/android/inputmethod/latin/RichInputConnection.java
parentf75abd67a34d25b71fc797cff870abb8519c360f (diff)
parent20c89b1cf5e30026844922d312163ffcd1c20b26 (diff)
downloadlatinime-434cf23ec9a39682fe132aed03db984dd67d2c1f.tar.gz
latinime-434cf23ec9a39682fe132aed03db984dd67d2c1f.tar.xz
latinime-434cf23ec9a39682fe132aed03db984dd67d2c1f.zip
am 20c89b1c: [SD5(2)] Remove useless args
* commit '20c89b1cf5e30026844922d312163ffcd1c20b26': [SD5(2)] 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;