diff options
author | Jan Kotas <jkotas@microsoft.com> | 2016-08-31 17:21:40 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-31 17:21:40 -0700 |
commit | dff1a185802abd109371f0317ce84d290c6675f6 (patch) | |
tree | 7064b9bc971e98e2a98fd20b261d23c510a50f90 /src/mscorlib/corefx/System/Globalization/ChineseLunisolarCalendar.cs | |
parent | 8f441624783d5a2a6c17364c633c21f2eac65215 (diff) | |
download | coreclr-dff1a185802abd109371f0317ce84d290c6675f6.tar.gz coreclr-dff1a185802abd109371f0317ce84d290c6675f6.tar.bz2 coreclr-dff1a185802abd109371f0317ce84d290c6675f6.zip |
Update Unix System.Globalization implementation from CoreRT (#7004)
Diffstat (limited to 'src/mscorlib/corefx/System/Globalization/ChineseLunisolarCalendar.cs')
-rw-r--r-- | src/mscorlib/corefx/System/Globalization/ChineseLunisolarCalendar.cs | 27 |
1 files changed, 2 insertions, 25 deletions
diff --git a/src/mscorlib/corefx/System/Globalization/ChineseLunisolarCalendar.cs b/src/mscorlib/corefx/System/Globalization/ChineseLunisolarCalendar.cs index 6fd6d1a8ef..48f62019d7 100644 --- a/src/mscorlib/corefx/System/Globalization/ChineseLunisolarCalendar.cs +++ b/src/mscorlib/corefx/System/Globalization/ChineseLunisolarCalendar.cs @@ -27,7 +27,6 @@ namespace System.Globalization // public const int ChineseEra = 1; - //internal static Calendar m_defaultInstance; internal const int MIN_LUNISOLAR_YEAR = 1901; internal const int MAX_LUNISOLAR_YEAR = 2100; @@ -72,7 +71,7 @@ namespace System.Globalization } - static readonly int[,] yinfo = + private static readonly int[,] s_yinfo = { /*Y LM Lmon Lday DaysPerMonth D1 D2 D3 D4 D5 D6 D7 D8 D9 D10 D11 D12 D13 #Days 1901 */ @@ -331,7 +330,7 @@ namespace System.Globalization } Contract.EndContractBlock(); - return yinfo[LunarYear - MIN_LUNISOLAR_YEAR, Index]; + return s_yinfo[LunarYear - MIN_LUNISOLAR_YEAR, Index]; } internal override int GetYear(int year, DateTime time) @@ -359,32 +358,10 @@ namespace System.Globalization return year; } - - /*=================================GetDefaultInstance========================== - **Action: Internal method to provide a default intance of ChineseLunisolarCalendar. Used by NLS+ implementation - ** and other calendars. - **Returns: - **Arguments: - **Exceptions: - ============================================================================*/ - - /* - internal static Calendar GetDefaultInstance() - { - if (m_defaultInstance == null) { - m_defaultInstance = new ChineseLunisolarCalendar(); - } - return (m_defaultInstance); - } - */ - - // Construct an instance of ChineseLunisolar calendar. - public ChineseLunisolarCalendar() { } - [System.Runtime.InteropServices.ComVisible(false)] public override int GetEra(DateTime time) { |