From 66901f40494a1bac40ff10b974372a06b8f7f46a Mon Sep 17 00:00:00 2001 From: Ram Viswanadha Date: Fri, 11 Nov 2005 03:05:58 +0000 Subject: [PATCH] ICU-4741 remove dead code X-SVN-Rev: 18783 --- .../com/ibm/icu/text/DateFormatSymbols.java | 5 ----- .../com/ibm/icu/text/SimpleDateFormat.java | 20 ------------------- 2 files changed, 25 deletions(-) diff --git a/icu4j/src/com/ibm/icu/text/DateFormatSymbols.java b/icu4j/src/com/ibm/icu/text/DateFormatSymbols.java index 4783641c52..3f24863f90 100755 --- a/icu4j/src/com/ibm/icu/text/DateFormatSymbols.java +++ b/icu4j/src/com/ibm/icu/text/DateFormatSymbols.java @@ -738,11 +738,6 @@ public class DateFormatSymbols implements Serializable, Cloneable { } } } - /* - for (int index = 0; index < this.zoneStrings[0].length; ++index) - if(this.zoneStrings[0][index]!=null) - hashcode ^= this.zoneStrings[0][index].hashCode(); - */ return hashcode; } diff --git a/icu4j/src/com/ibm/icu/text/SimpleDateFormat.java b/icu4j/src/com/ibm/icu/text/SimpleDateFormat.java index aaa20fc0e4..e8ff44fe63 100755 --- a/icu4j/src/com/ibm/icu/text/SimpleDateFormat.java +++ b/icu4j/src/com/ibm/icu/text/SimpleDateFormat.java @@ -1287,25 +1287,6 @@ public class SimpleDateFormat extends DateFormat { } return -start; } -/* - private int matchZoneString(String text, int start, int zoneIndex) { - String[] zs = formatData.zoneStrings[zoneIndex]; - for (int j = 1; j < zs.length; ++j) { - if (j == 5 && (zs.length ==6 || zs.length >= 8)) { // skip city name if we have it - continue; - } - if (zs[j].length() == 0) continue; // SKIP over empty zone strings - // Checking long and short zones [1 & 2], - // and long and short daylight [3 & 4], - // and long and short generic [6 & 7] - if (text.regionMatches(true, start, zs[j], 0, zs[j].length())) { - return j; - } - } - - return -1; - } -*/ /** * find time zone 'text' matched zoneStrings and set cal */ @@ -1369,7 +1350,6 @@ public class SimpleDateFormat extends DateFormat { } else if (type == DateFormatSymbols.TIMEZONE_SHORT_DAYLIGHT || type == DateFormatSymbols.TIMEZONE_LONG_DAYLIGHT) { // daylight time - // !!! todo - no getDSTSavings() in ICU's timezone // use the correct DST SAVINGS for the zone. // cal.set(UCAL_DST_OFFSET, tz->getDSTSavings()); cal.set(Calendar.DST_OFFSET, millisPerHour);