]> granicus.if.org Git - icu/commitdiff
ICU-22160 clean up Calendar code
authorFrank Tang <ftang@chromium.org>
Thu, 22 Sep 2022 02:53:29 +0000 (19:53 -0700)
committerFrank Yung-Fong Tang <ftang@google.com>
Mon, 31 Oct 2022 15:41:54 +0000 (08:41 -0700)
Remove unnecessary BuddhistCalendar::handleComputeMonthStart
Remove unnecessary include

icu4c/source/i18n/buddhcal.cpp
icu4c/source/i18n/buddhcal.h
icu4c/source/i18n/hebrwcal.cpp
icu4c/source/i18n/indiancal.cpp

index de304129cb42dae5c5cc8a7a6ed6c1cf540c19b0..dc14af00bf9c3646049d749132993b7d21479e60 100644 (file)
@@ -78,13 +78,6 @@ int32_t BuddhistCalendar::handleGetExtendedYear()
     return year;
 }
 
-int32_t BuddhistCalendar::handleComputeMonthStart(int32_t eyear, int32_t month,
-
-                                                  UBool useMonth) const
-{
-    return GregorianCalendar::handleComputeMonthStart(eyear, month, useMonth);
-}
-
 void BuddhistCalendar::handleComputeFields(int32_t julianDay, UErrorCode& status)
 {
     GregorianCalendar::handleComputeFields(julianDay, status);
index 2ef5c524935a85d5d851297be105709001f7d47a..dba4111129b90b0019692f6f301841d62fa82cd4 100644 (file)
@@ -157,21 +157,6 @@ private:
      * @internal
      */
     virtual int32_t handleGetLimit(UCalendarDateFields field, ELimitType limitType) const override;
-        /**
-     * Return the Julian day number of day before the first day of the
-     * given month in the given extended year.  Subclasses should override
-     * this method to implement their calendar system.
-     * @param eyear the extended year
-     * @param month the zero-based month, or 0 if useMonth is false
-     * @param useMonth if false, compute the day before the first day of
-     * the given year, otherwise, compute the day before the first day of
-     * the given month
-     * @param return the Julian day number of the day before the first
-     * day of the given month and year
-     * @internal
-     */
-    virtual int32_t handleComputeMonthStart(int32_t eyear, int32_t month,
-                                            UBool useMonth) const override;
 
     /**
      * Returns true because the Buddhist Calendar does have a default century
index b3e6bcb65c334251328103241b5847b8916381a0..7e8da3eb2fb87aab7daf5836e601ad7b7ae4ae14 100644 (file)
@@ -22,8 +22,8 @@
 #include "cmemory.h"
 #include "umutex.h"
 #include <float.h>
-#include "gregoimp.h" // Math
-#include "astro.h" // CalendarAstronomer
+#include "gregoimp.h" // ClockMath
+#include "astro.h" // CalendarCache
 #include "uhash.h"
 #include "ucln_in.h"
 
index 935290a5751dc3edaba496759f36f2a97083a79d..24919e394f656ab0a5f12befd03aefcf1935275a 100644 (file)
@@ -16,7 +16,6 @@
 #include "mutex.h"
 #include <float.h>
 #include "gregoimp.h" // Math
-#include "astro.h" // CalendarAstronomer
 #include "uhash.h"
 
 // Debugging