diff options
author | 2013-05-15 12:53:03 -0700 | |
---|---|---|
committer | 2013-05-15 12:53:03 -0700 | |
commit | aaf7d70be7b3f835c80a0d030c41dbdbe015cedb (patch) | |
tree | 0e34b76d76c858be18da40f3ddaeaddd95b09872 /java/src/com/android/inputmethod/latin/StringUtils.java | |
parent | 8738eeaf65aee217349aa4abfaea5451a9b5bc23 (diff) | |
parent | 6f6478422f8881e7692c99e3a3925266980099d0 (diff) | |
download | latinime-aaf7d70be7b3f835c80a0d030c41dbdbe015cedb.tar.gz latinime-aaf7d70be7b3f835c80a0d030c41dbdbe015cedb.tar.xz latinime-aaf7d70be7b3f835c80a0d030c41dbdbe015cedb.zip |
am 6f647842: am ec83457d: Merge "Support multiple condition for getDeviceOverrideValue"
* commit '6f6478422f8881e7692c99e3a3925266980099d0':
Support multiple condition for getDeviceOverrideValue
Diffstat (limited to 'java/src/com/android/inputmethod/latin/StringUtils.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/StringUtils.java | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/java/src/com/android/inputmethod/latin/StringUtils.java b/java/src/com/android/inputmethod/latin/StringUtils.java index 5ff101f7a..ab050d7a3 100644 --- a/java/src/com/android/inputmethod/latin/StringUtils.java +++ b/java/src/com/android/inputmethod/latin/StringUtils.java @@ -65,30 +65,6 @@ public final class StringUtils { } /** - * Find a value that has a specified key from an array of key-comma-value. - * - * @param key a key string to find. - * @param array an array of key-comma-value string to be searched. - * @return the value part of the first string that has a specified key. - * Returns null if it couldn't be found. - */ - public static String findValueOfKey(final String key, final String[] array) { - if (array == null) { - return null; - } - for (final String element : array) { - final int posComma = element.indexOf(','); - if (posComma < 0) { - throw new RuntimeException("Element has no comma: " + element); - } - if (element.substring(0, posComma).equals(key)) { - return element.substring(posComma + 1); - } - } - return null; - } - - /** * Remove duplicates from an array of strings. * * This method will always keep the first occurrence of all strings at their position |