From 1d300239612591879d535c20ade1f2712048170e Mon Sep 17 00:00:00 2001 From: Jean Chalard Date: Fri, 27 Jun 2014 21:57:57 +0900 Subject: [SD5] Remove useless args Bug: 15840116 Change-Id: Ib3380cfc9d343c6f8953bba03af3801142bc3bdb --- .../android/inputmethod/latin/RichInputConnection.java | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) (limited to 'java/src/com/android/inputmethod/latin/RichInputConnection.java') 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 @@ -619,28 +619,14 @@ public final class RichInputConnection { return new PrevWordsInfo(prevWordsInfo); } - /** - * @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; -- cgit v1.2.3-83-g751a