aboutsummaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2014-11-06 20:36:53 +0900
committerJean Chalard <jchalard@google.com>2014-11-06 21:38:17 +0900
commitb395ce4396fd04dbcb4ea6e27f6535d1c11457c3 (patch)
tree102a86da9a366cf37e72207fb609a1539ecaaf64 /java
parent03eb9de961d655d6a3c2c83082221166db10f93c (diff)
downloadlatinime-b395ce4396fd04dbcb4ea6e27f6535d1c11457c3.tar.gz
latinime-b395ce4396fd04dbcb4ea6e27f6535d1c11457c3.tar.xz
latinime-b395ce4396fd04dbcb4ea6e27f6535d1c11457c3.zip
Remove a useless method.
Yay for cleanup Bug: 18108776 Change-Id: I13f4066cd54f294377fdcf375a69350c44d4a32a
Diffstat (limited to 'java')
-rw-r--r--java/src/com/android/inputmethod/dictionarypack/LocaleUtils.java17
1 files changed, 0 insertions, 17 deletions
diff --git a/java/src/com/android/inputmethod/dictionarypack/LocaleUtils.java b/java/src/com/android/inputmethod/dictionarypack/LocaleUtils.java
index 4f0805c5c..84b88768a 100644
--- a/java/src/com/android/inputmethod/dictionarypack/LocaleUtils.java
+++ b/java/src/com/android/inputmethod/dictionarypack/LocaleUtils.java
@@ -16,8 +16,6 @@
package com.android.inputmethod.dictionarypack;
-import android.content.res.Configuration;
-import android.content.res.Resources;
import android.text.TextUtils;
import java.util.HashMap;
@@ -160,21 +158,6 @@ public final class LocaleUtils {
return LOCALE_MATCH <= level;
}
- /**
- * Sets the system locale for this process.
- *
- * @param res the resources to use. Pass current resources.
- * @param newLocale the locale to change to.
- * @return the old locale.
- */
- public static Locale setSystemLocale(final Resources res, final Locale newLocale) {
- final Configuration conf = res.getConfiguration();
- final Locale saveLocale = conf.locale;
- conf.locale = newLocale;
- res.updateConfiguration(conf, res.getDisplayMetrics());
- return saveLocale;
- }
-
private static final HashMap<String, Locale> sLocaleCache = new HashMap<>();
/**