diff --git a/icu4c/source/i18n/astro.cpp b/icu4c/source/i18n/astro.cpp index d68bba3f40d..457176c8a15 100644 --- a/icu4c/source/i18n/astro.cpp +++ b/icu4c/source/i18n/astro.cpp @@ -617,9 +617,9 @@ CalendarAstronomer::Equatorial& CalendarAstronomer::getSunPosition(CalendarAstro * @internal * @deprecated ICU 2.4. This class may be removed or modified. */ -double CalendarAstronomer::VERNAL_EQUINOX() { +/*double CalendarAstronomer::VERNAL_EQUINOX() { return 0; -} +}*/ /** * Constant representing the summer solstice. @@ -639,9 +639,9 @@ double CalendarAstronomer::SUMMER_SOLSTICE() { * @internal * @deprecated ICU 2.4. This class may be removed or modified. */ -double CalendarAstronomer::AUTUMN_EQUINOX() { +/*double CalendarAstronomer::AUTUMN_EQUINOX() { return (CalendarAstronomer::PI); -} +}*/ /** * Constant representing the winter solstice. @@ -650,9 +650,9 @@ double CalendarAstronomer::AUTUMN_EQUINOX() { * @internal * @deprecated ICU 2.4. This class may be removed or modified. */ -double CalendarAstronomer::WINTER_SOLSTICE() { +/*double CalendarAstronomer::WINTER_SOLSTICE() { return ((CalendarAstronomer::PI*3)/2); -} +}*/ CalendarAstronomer::AngleFunc::~AngleFunc() {} @@ -1128,9 +1128,9 @@ double CalendarAstronomer::getMoonPhase() { * @internal * @deprecated ICU 2.4. This class may be removed or modified. */ -const CalendarAstronomer::MoonAge CalendarAstronomer::NEW_MOON() { +/*const CalendarAstronomer::MoonAge CalendarAstronomer::NEW_MOON() { return CalendarAstronomer::MoonAge(0); -} +}*/ /** * Constant representing the moon's first quarter. @@ -1138,9 +1138,9 @@ const CalendarAstronomer::MoonAge CalendarAstronomer::NEW_MOON() { * @internal * @deprecated ICU 2.4. This class may be removed or modified. */ -const CalendarAstronomer::MoonAge CalendarAstronomer::FIRST_QUARTER() { +/*const CalendarAstronomer::MoonAge CalendarAstronomer::FIRST_QUARTER() { return CalendarAstronomer::MoonAge(CalendarAstronomer::PI/2); -} +}*/ /** * Constant representing a full moon. @@ -1163,9 +1163,9 @@ public: virtual double eval(CalendarAstronomer&a) { return a.getMoonAge(); } }; -const CalendarAstronomer::MoonAge CalendarAstronomer::LAST_QUARTER() { +/*const CalendarAstronomer::MoonAge CalendarAstronomer::LAST_QUARTER() { return CalendarAstronomer::MoonAge((CalendarAstronomer::PI*3)/2); -} +}*/ /** * Find the next or previous time at which the Moon's ecliptic @@ -1425,7 +1425,7 @@ void CalendarAstronomer::clearCache() { * @internal * @deprecated ICU 2.4. This class may be removed or modified. */ -UDate CalendarAstronomer::local(UDate localMillis) { +/*UDate CalendarAstronomer::local(UDate localMillis) { // TODO - srl ? TimeZone *tz = TimeZone::createDefault(); int32_t rawOffset; @@ -1434,7 +1434,7 @@ UDate CalendarAstronomer::local(UDate localMillis) { tz->getOffset(localMillis, TRUE, rawOffset, dstOffset, status); delete tz; return localMillis - rawOffset; -} +}*/ // Debugging functions UnicodeString CalendarAstronomer::Ecliptic::toString() const diff --git a/icu4c/source/i18n/astro.h b/icu4c/source/i18n/astro.h index 8717595ef7c..18e6aa55ca9 100644 --- a/icu4c/source/i18n/astro.h +++ b/icu4c/source/i18n/astro.h @@ -497,7 +497,7 @@ public: * Note: In this case, "vernal" refers to the northern hemisphere's seasons. * @internal */ - static double VERNAL_EQUINOX(); +// static double VERNAL_EQUINOX(); /** * Constant representing the summer solstice. @@ -513,7 +513,7 @@ public: * Note: In this case, "autumn" refers to the northern hemisphere's seasons. * @internal */ - static double AUTUMN_EQUINOX(); +// static double AUTUMN_EQUINOX(); /** * Constant representing the winter solstice. @@ -521,7 +521,7 @@ public: * Note: In this case, "winter" refers to the northern hemisphere's seasons. * @internal */ - static double WINTER_SOLSTICE(); +// static double WINTER_SOLSTICE(); /** * Find the next time at which the sun's ecliptic longitude will have @@ -596,14 +596,14 @@ public: * For use with {@link #getMoonTime getMoonTime} * @internal */ - static const MoonAge NEW_MOON(); +// static const MoonAge NEW_MOON(); /** * Constant representing the moon's first quarter. * For use with {@link #getMoonTime getMoonTime} * @internal */ - static const MoonAge FIRST_QUARTER(); +// static const MoonAge FIRST_QUARTER(); /** * Constant representing a full moon. @@ -617,7 +617,7 @@ public: * For use with {@link #getMoonTime getMoonTime} * @internal */ - static const MoonAge LAST_QUARTER(); +// static const MoonAge LAST_QUARTER(); /** * Find the next or previous time at which the Moon's ecliptic @@ -759,7 +759,7 @@ private: /** * @internal */ - UDate local(UDate localMillis); +// UDate local(UDate localMillis); }; U_NAMESPACE_END