ICU-5410 Remove unused code.
X-SVN-Rev: 20517
This commit is contained in:
parent
dbf71c1acb
commit
a74e6efd96
@ -10,7 +10,6 @@
|
||||
*/
|
||||
package com.ibm.icu.impl;
|
||||
import com.ibm.icu.util.TimeZone;
|
||||
import com.ibm.icu.util.SimpleTimeZone;
|
||||
import java.util.Date;
|
||||
import java.io.IOException;
|
||||
|
||||
@ -34,19 +33,19 @@ public class JDKTimeZone extends TimeZone {
|
||||
*/
|
||||
// give access to SimpleTimeZone
|
||||
protected transient OlsonTimeZone zone;
|
||||
/**
|
||||
/*
|
||||
* Given a java.util.TimeZone, wrap it in the appropriate adapter
|
||||
* subclass of com.ibm.icu.util.TimeZone and return the adapter.
|
||||
*/
|
||||
public static TimeZone wrap(java.util.TimeZone tz) {
|
||||
if (tz instanceof TimeZoneAdapter) {
|
||||
return ((TimeZoneAdapter) tz).unwrap();
|
||||
}
|
||||
if (tz instanceof java.util.SimpleTimeZone) {
|
||||
return new SimpleTimeZone((java.util.SimpleTimeZone) tz, tz.getID());
|
||||
}
|
||||
return new JDKTimeZone(tz);
|
||||
}
|
||||
// public static TimeZone wrap(java.util.TimeZone tz) {
|
||||
// if (tz instanceof TimeZoneAdapter) {
|
||||
// return ((TimeZoneAdapter) tz).unwrap();
|
||||
// }
|
||||
// if (tz instanceof java.util.SimpleTimeZone) {
|
||||
// return new SimpleTimeZone((java.util.SimpleTimeZone) tz, tz.getID());
|
||||
// }
|
||||
// return new JDKTimeZone(tz);
|
||||
// }
|
||||
|
||||
|
||||
/**
|
||||
|
@ -9,10 +9,6 @@ import com.ibm.icu.impl.JDKTimeZone;
|
||||
import java.io.IOException;
|
||||
import java.util.Date;
|
||||
|
||||
import com.ibm.icu.impl.OlsonTimeZone;
|
||||
import com.ibm.icu.impl.Utility;
|
||||
|
||||
///CLOVER:USECLASS
|
||||
/**
|
||||
* <code>SimpleTimeZone</code> is a concrete subclass of <code>TimeZone</code>
|
||||
* that represents a time zone for use with a Gregorian calendar. This
|
||||
@ -444,19 +440,19 @@ public class SimpleTimeZone extends JDKTimeZone {
|
||||
return dst;
|
||||
}
|
||||
|
||||
/**
|
||||
/*
|
||||
* Constructs a SimpleTimeZone that wraps the given
|
||||
* java.util.SimpleTimeZone. Do not call; use the TimeZone
|
||||
* API.
|
||||
* @internal
|
||||
* @deprecated This API is ICU internal only.
|
||||
*/
|
||||
public SimpleTimeZone(java.util.SimpleTimeZone tz, String ID) {
|
||||
super(tz);
|
||||
super.setID(ID);
|
||||
dst = tz.getDSTSavings();
|
||||
raw = tz.getRawOffset();
|
||||
}
|
||||
// public SimpleTimeZone(java.util.SimpleTimeZone tz, String ID) {
|
||||
// super(tz);
|
||||
// super.setID(ID);
|
||||
// dst = tz.getDSTSavings();
|
||||
// raw = tz.getRawOffset();
|
||||
// }
|
||||
|
||||
/**
|
||||
* Returns the java.util.SimpleTimeZone that this class wraps.
|
||||
@ -468,8 +464,8 @@ public class SimpleTimeZone extends JDKTimeZone {
|
||||
// on JDK 1.4 and later, can't deserialize a SimpleTimeZone as a SimpleTimeZone...
|
||||
private void readObject(java.io.ObjectInputStream in) throws IOException, ClassNotFoundException {
|
||||
in.defaultReadObject();
|
||||
String id = getID();
|
||||
/*
|
||||
String id = getID();
|
||||
if (id!=null && !(zone instanceof java.util.SimpleTimeZone && zone.getID().equals(id))) {
|
||||
// System.out.println("*** readjust " + zone.getClass().getName() + " " + zone.getID() + " ***");
|
||||
java.util.SimpleTimeZone stz =
|
||||
@ -515,9 +511,9 @@ public class SimpleTimeZone extends JDKTimeZone {
|
||||
// Gregorian, since we know they didn't have daylight time when
|
||||
// Gregorian calendar started.
|
||||
// private static final int[] STATICMONTHLENGTH = new int[]{31,29,31,30,31,30,31,31,30,31,30,31};
|
||||
private final byte monthLength[] = staticMonthLength;
|
||||
// private final byte monthLength[] = staticMonthLength;
|
||||
private final static byte staticMonthLength[] = {31,29,31,30,31,30,31,31,30,31,30,31};
|
||||
private final static byte staticLeapMonthLength[] = {31,29,31,30,31,30,31,31,30,31,30,31};
|
||||
// private final static byte staticLeapMonthLength[] = {31,29,31,30,31,30,31,31,30,31,30,31};
|
||||
|
||||
// -------------------------------------
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user