aboutsummaryrefslogtreecommitdiffstats
path: root/java/src
diff options
context:
space:
mode:
authorKen Wakasa <kwakasa@google.com>2012-04-22 12:50:01 +0900
committerKen Wakasa <kwakasa@google.com>2012-04-22 12:50:01 +0900
commitf8ad37a8fc8175e6d4bceda41df337608b49d62d (patch)
treeefb5d996936b36a73cd1f4ddacee27ae369150d1 /java/src
parent621e3f983039f4b9c9f44903a2b0083c20dd827b (diff)
downloadlatinime-f8ad37a8fc8175e6d4bceda41df337608b49d62d.tar.gz
latinime-f8ad37a8fc8175e6d4bceda41df337608b49d62d.tar.xz
latinime-f8ad37a8fc8175e6d4bceda41df337608b49d62d.zip
Remove an unused method
Change-Id: I3abbf6462c31b11167e356fe77b8afca2514a869
Diffstat (limited to 'java/src')
-rw-r--r--java/src/com/android/inputmethod/latin/EditingUtils.java24
1 files changed, 0 insertions, 24 deletions
diff --git a/java/src/com/android/inputmethod/latin/EditingUtils.java b/java/src/com/android/inputmethod/latin/EditingUtils.java
index b3f613bae..19dcf0446 100644
--- a/java/src/com/android/inputmethod/latin/EditingUtils.java
+++ b/java/src/com/android/inputmethod/latin/EditingUtils.java
@@ -37,30 +37,6 @@ public class EditingUtils {
// Unintentional empty constructor for singleton.
}
- /**
- * Append newText to the text field represented by connection.
- * The new text becomes selected.
- */
- public static void appendText(InputConnection connection, String newText) {
- if (connection == null) {
- return;
- }
-
- // Commit the composing text
- connection.finishComposingText();
-
- // Add a space if the field already has text.
- String text = newText;
- CharSequence charBeforeCursor = connection.getTextBeforeCursor(1, 0);
- if (charBeforeCursor != null
- && !charBeforeCursor.equals(" ")
- && (charBeforeCursor.length() > 0)) {
- text = " " + text;
- }
-
- connection.setComposingText(text, 1);
- }
-
private static int getCursorPosition(InputConnection connection) {
if (null == connection) return INVALID_CURSOR_POSITION;
ExtractedText extracted = connection.getExtractedText(