mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-08 06:53:45 +00:00
ICU-5410 Remove unused code, and fix some eclipse warnings.
X-SVN-Rev: 20516
This commit is contained in:
parent
98522b5ddd
commit
dbf71c1acb
2 changed files with 11 additions and 14 deletions
|
@ -23,7 +23,6 @@ import java.io.Serializable;
|
|||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
import java.util.Iterator;
|
||||
import java.util.Locale;
|
||||
import java.util.MissingResourceException;
|
||||
import java.util.ResourceBundle;
|
||||
|
@ -1461,7 +1460,7 @@ public class DateFormatSymbols implements Serializable, Cloneable {
|
|||
TIMEZONE_EXEMPLAR_CITY = 6,
|
||||
TIMEZONE_COUNT = 7;
|
||||
|
||||
/**
|
||||
/*
|
||||
* Package private: used by SimpleDateFormat
|
||||
* Gets the index for the given time zone ID to obtain the timezone
|
||||
* strings for formatting. The time zone ID is just for programmatic
|
||||
|
@ -1471,7 +1470,7 @@ public class DateFormatSymbols implements Serializable, Cloneable {
|
|||
* the given time zone ID can't be located in the DateFormatSymbols object.
|
||||
* @see com.ibm.icu.util.SimpleTimeZone
|
||||
*/
|
||||
final int getZoneIndex(String ID) {
|
||||
/* final int getZoneIndex(String ID) {
|
||||
int result = _getZoneIndex(ID);
|
||||
if (result >= 0) {
|
||||
return result;
|
||||
|
@ -1490,23 +1489,22 @@ public class DateFormatSymbols implements Serializable, Cloneable {
|
|||
}
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
}*/
|
||||
|
||||
/**
|
||||
/*
|
||||
* Lookup the given ID. Do NOT do an equivalency search.
|
||||
*/
|
||||
private int _getZoneIndex(String ID)
|
||||
/* private int _getZoneIndex(String ID)
|
||||
{
|
||||
for (int index=0; index<zoneStrings.length; index++) {
|
||||
if (ID.equalsIgnoreCase(zoneStrings[index][0])) return index;
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
}*/
|
||||
|
||||
/**
|
||||
* Clones an array of Strings.
|
||||
* @param srcArray the source array to be cloned.
|
||||
* @param count the number of elements in the given source array.
|
||||
* @return a cloned array.
|
||||
*/
|
||||
private final String[] duplicate(String[] srcArray)
|
||||
|
@ -1728,7 +1726,7 @@ public class DateFormatSymbols implements Serializable, Cloneable {
|
|||
* Fetch a custom calendar's DateFormatSymbols out of the given resource
|
||||
* bundle. Symbols that are not overridden are inherited from the
|
||||
* default DateFormatSymbols for the locale.
|
||||
* @see DateFormatSymbols#DateFormatSymbols
|
||||
* @see DateFormatSymbols#DateFormatSymbols(java.util.Locale)
|
||||
* @stable ICU 2.0
|
||||
*/
|
||||
public DateFormatSymbols(ResourceBundle bundle, Locale locale) {
|
||||
|
@ -1739,7 +1737,7 @@ public class DateFormatSymbols implements Serializable, Cloneable {
|
|||
* Fetch a custom calendar's DateFormatSymbols out of the given resource
|
||||
* bundle. Symbols that are not overridden are inherited from the
|
||||
* default DateFormatSymbols for the locale.
|
||||
* @see DateFormatSymbols#DateFormatSymbols
|
||||
* @see DateFormatSymbols#DateFormatSymbols(java.util.Locale)
|
||||
* @draft ICU 3.2
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
|
|
|
@ -27,7 +27,6 @@ import java.util.Hashtable;
|
|||
import java.util.Locale;
|
||||
import java.util.Map;
|
||||
|
||||
import com.ibm.icu.impl.LocaleUtility;
|
||||
|
||||
/**
|
||||
* <code>SimpleDateFormat</code> is a concrete class for formatting and
|
||||
|
@ -990,11 +989,11 @@ public class SimpleDateFormat extends DateFormat {
|
|||
buf.append((char)0x003A) /*':'*/;
|
||||
zeroPaddingNumber(buf, (int)((value%millisPerHour)/millisPerMinute), 2, 2);
|
||||
}
|
||||
/**
|
||||
/*
|
||||
* Internal method. Returns null if the value of an array is empty, or if the
|
||||
* index is out of bounds
|
||||
*/
|
||||
private String getZoneArrayValue(String[] zs, int ix) {
|
||||
/* private String getZoneArrayValue(String[] zs, int ix) {
|
||||
if (ix >= 0 && ix < zs.length) {
|
||||
String result = zs[ix];
|
||||
if (result != null && result.length() != 0) {
|
||||
|
@ -1002,7 +1001,7 @@ public class SimpleDateFormat extends DateFormat {
|
|||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}*/
|
||||
|
||||
/**
|
||||
* Internal high-speed method. Reuses a StringBuffer for results
|
||||
|
|
Loading…
Add table
Reference in a new issue