ICU-22639 Revert now obsolete bug workarounds.

This reverts changes from commit 47b9a517be.
This reverts changes from commit 214ae60d94.
This commit is contained in:
Fredrik Roubert 2024-01-19 08:19:16 +09:00 committed by Fredrik Roubert
parent c5160765d4
commit 7b690aa8c7

View file

@ -3695,16 +3695,14 @@ int32_t Calendar::handleGetExtendedYearFromWeekFields(int32_t yearWoy, int32_t w
int32_t Calendar::handleGetMonthLength(int32_t extendedYear, int32_t month) const
{
const int32_t nextMonthStart = handleComputeMonthStart(extendedYear, month+1, true);
const int32_t thisMonthStart = handleComputeMonthStart(extendedYear, month, true);
return nextMonthStart - thisMonthStart;
return handleComputeMonthStart(extendedYear, month+1, true) -
handleComputeMonthStart(extendedYear, month, true);
}
int32_t Calendar::handleGetYearLength(int32_t eyear) const
{
const int32_t nextYearStart = handleComputeMonthStart(eyear + 1, 0, false);
const int32_t thisYearStart = handleComputeMonthStart(eyear, 0, false);
return nextYearStart - thisYearStart;
return handleComputeMonthStart(eyear+1, 0, false) -
handleComputeMonthStart(eyear, 0, false);
}
int32_t