aboutsummaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2014-11-07 06:00:51 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-11-07 06:00:54 +0000
commit51d0b3351b2530173cdf73d1a9b364c916583999 (patch)
tree0a67936b22562647f118057ca899f6eb4c8296ee /java
parent536bf61658fbd1f541824f6020493dc8816c8349 (diff)
parentb395ce4396fd04dbcb4ea6e27f6535d1c11457c3 (diff)
downloadlatinime-51d0b3351b2530173cdf73d1a9b364c916583999.tar.gz
latinime-51d0b3351b2530173cdf73d1a9b364c916583999.tar.xz
latinime-51d0b3351b2530173cdf73d1a9b364c916583999.zip
Merge "Remove a useless method."
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<>();
/**