summaryrefslogtreecommitdiffstats
path: root/core/java/android/util/TimeUtils.java
diff options
context:
space:
mode:
authorNarayan Kamath <narayan@google.com>2014-06-13 17:46:47 +0100
committerNarayan Kamath <narayan@google.com>2014-06-13 17:46:47 +0100
commitd9d0bb64e74d363a027d24e93ccb67e46fb256ba (patch)
tree352c811ae860f29df8dd82ec7eee245cad6b7ca1 /core/java/android/util/TimeUtils.java
parent77d28ca25378530f92d409fbd72a38a1e256b59f (diff)
downloadframeworks_base-d9d0bb64e74d363a027d24e93ccb67e46fb256ba.zip
frameworks_base-d9d0bb64e74d363a027d24e93ccb67e46fb256ba.tar.gz
frameworks_base-d9d0bb64e74d363a027d24e93ccb67e46fb256ba.tar.bz2
Remove some pointless code.
Unnecessary disk reads for values that are never used (and cached elsewhere, so that optimization is rendered pointless). Change-Id: Ic14a8b53a96908bb03eae28759d7be2c217e8125
Diffstat (limited to 'core/java/android/util/TimeUtils.java')
-rw-r--r--core/java/android/util/TimeUtils.java5
1 files changed, 1 insertions, 4 deletions
diff --git a/core/java/android/util/TimeUtils.java b/core/java/android/util/TimeUtils.java
index 33964a0..707edef 100644
--- a/core/java/android/util/TimeUtils.java
+++ b/core/java/android/util/TimeUtils.java
@@ -62,10 +62,7 @@ public class TimeUtils {
*/
public static TimeZone getTimeZone(int offset, boolean dst, long when, String country) {
TimeZone best = null;
-
- Resources r = Resources.getSystem();
- XmlResourceParser parser = r.getXml(com.android.internal.R.xml.time_zones_by_country);
- Date d = new Date(when);
+ final Date d = new Date(when);
TimeZone current = TimeZone.getDefault();
String currentName = current.getID();