diff options
Diffstat (limited to 'src/System.Private.CoreLib/src/System/CurrentSystemTimeZone.Cache.cs')
-rw-r--r-- | src/System.Private.CoreLib/src/System/CurrentSystemTimeZone.Cache.cs | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/System.Private.CoreLib/src/System/CurrentSystemTimeZone.Cache.cs b/src/System.Private.CoreLib/src/System/CurrentSystemTimeZone.Cache.cs deleted file mode 100644 index efa66ece9..000000000 --- a/src/System.Private.CoreLib/src/System/CurrentSystemTimeZone.Cache.cs +++ /dev/null @@ -1,21 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. - -using System.Globalization; -using System.Collections.Concurrent; - -namespace System -{ - internal partial class CurrentSystemTimeZone - { - private DaylightTime GetCachedDaylightChanges(int year) => _daylightChangesUnifier.GetOrAdd(year); - - private sealed class DaylightChangesUnifier : ConcurrentUnifier<int, DaylightTime> - { - protected sealed override DaylightTime Factory(int key) => CurrentSystemTimeZone.CreateDaylightChanges(key); - } - - private readonly DaylightChangesUnifier _daylightChangesUnifier = new DaylightChangesUnifier(); - } -} |