diff options
author | Hossein <hossein@libreoffice.org> | 2021-11-19 09:12:18 +0100 |
---|---|---|
committer | Hossein <hossein@libreoffice.org> | 2021-11-19 11:26:09 +0100 |
commit | 9cad66da644e1721f9a49c2b5fffd86da08f78c5 (patch) | |
tree | 078edf81008d18f3acb0a05ba988452e6320b9b2 /i18npool/inc | |
parent | 96d19777abfdf74c9776470e39ee3ec7e1b2e256 (diff) |
Cleanup locally used variables in Calendar_hijri
* Some variables that were only used in the calendar_hijri.cxx
are now moved out of the header file, and they are no loner
member variables of the the class Calendar_hijri. They are now
placed in the the i18npool namespace.
* Removed unused variables SynMonth, EveningPeriod and LeapYear
* Moved a global variable definition to the member function that was
the only place it was used. It is now a local variable.
Change-Id: I8a8b25765bd8ed5640b1a0cfa46ec9903b460a53
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125433
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
Diffstat (limited to 'i18npool/inc')
-rw-r--r-- | i18npool/inc/calendar_hijri.hxx | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/i18npool/inc/calendar_hijri.hxx b/i18npool/inc/calendar_hijri.hxx index c11a507bb420..707c877710a0 100644 --- a/i18npool/inc/calendar_hijri.hxx +++ b/i18npool/inc/calendar_hijri.hxx @@ -37,24 +37,6 @@ private: void mapToGregorian() override; void mapFromGregorian() override; - // Synodic Period (mean time between 2 successive new moon: 29d, 12 hr, 44min, 3sec - static const double SynPeriod; - - static const double SynMonth; // Solar days in a year/SynPeriod - - // Julian day on Jan 1, 1900 - static const double jd1900; - - // Reference point: September 1984 25d 3h 10m UT. == 1405 Hijri == 1048 Synodial month from 1900 - static const sal_Int32 SynRef; - static const sal_Int32 GregRef; - - // Period between 1.30pm - 6:30pm - static const double EveningPeriod; - - // "Leap" years - static const sal_Int32 LeapYear[]; - private: static double NewMoon(sal_Int32 n); static void getHijri(sal_Int32 *day, sal_Int32 *month, sal_Int32 *year); |