summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2014-10-23 18:25:19 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2014-10-23 18:25:19 +0000
commit026194b8948b75b70fe035e3008cd5288e62badb (patch)
treed0a6328adafe8ac1a99408e69e627e5d6d497f1a
parent9aee9663aba1bf74fffc2c2a288da078565b491e (diff)
parentd8aa6c7b03fdb0247ae5cce6dd0e876346276a73 (diff)
downloadlibcore-026194b8948b75b70fe035e3008cd5288e62badb.zip
libcore-026194b8948b75b70fe035e3008cd5288e62badb.tar.gz
libcore-026194b8948b75b70fe035e3008cd5288e62badb.tar.bz2
Merge "Remove no-longer used timeFormat12 and timeFormat24."
-rw-r--r--luni/src/main/java/libcore/icu/LocaleData.java11
1 files changed, 1 insertions, 10 deletions
diff --git a/luni/src/main/java/libcore/icu/LocaleData.java b/luni/src/main/java/libcore/icu/LocaleData.java
index cca38e1..cf52b9c 100644
--- a/luni/src/main/java/libcore/icu/LocaleData.java
+++ b/luni/src/main/java/libcore/icu/LocaleData.java
@@ -88,15 +88,12 @@ public final class LocaleData {
public String shortDateFormat4;
// Used by DateFormat to implement 12- and 24-hour SHORT and MEDIUM.
+ // The first two are also used directly by frameworks code.
public String timeFormat_hm;
public String timeFormat_Hm;
public String timeFormat_hms;
public String timeFormat_Hms;
- // Used by android.text.format.DateFormat.getTimeFormat.
- public String timeFormat12; // "hh:mm a"
- public String timeFormat24; // "HH:mm"
-
// Used by DecimalFormatSymbols.
public char zeroDigit;
public char decimalSeparator;
@@ -213,12 +210,6 @@ public final class LocaleData {
localeData.timeFormat_Hm = ICU.getBestDateTimePattern("Hm", locale);
localeData.timeFormat_hms = ICU.getBestDateTimePattern("hms", locale);
localeData.timeFormat_Hms = ICU.getBestDateTimePattern("Hms", locale);
- // We could move callers over to the other fields, but these seem simpler and discourage
- // people from shooting themselves in the foot by learning about patterns and skeletons.
- // TODO: the right fix here is probably to move callers over to java.text.DateFormat,
- // so nothing outside libcore references these any more.
- localeData.timeFormat12 = localeData.timeFormat_hm;
- localeData.timeFormat24 = localeData.timeFormat_Hm;
// Fix up a couple of patterns.
if (localeData.fullTimeFormat != null) {