diff --git a/src/BizHawk.Common/Extensions/CollectionExtensions.cs b/src/BizHawk.Common/Extensions/CollectionExtensions.cs index 7f49167b62..d58397ba81 100644 --- a/src/BizHawk.Common/Extensions/CollectionExtensions.cs +++ b/src/BizHawk.Common/Extensions/CollectionExtensions.cs @@ -165,10 +165,6 @@ namespace BizHawk.Common.CollectionExtensions /// If the key is not present, returns default(TValue). /// backported from .NET Core 2.0 /// - public static TValue? GetValueOrDefault(IDictionary dictionary, TKey key) - => dictionary.TryGetValue(key, out var found) ? found : default; - - /// public static TValue? GetValueOrDefault(this IReadOnlyDictionary dictionary, TKey key) => dictionary.TryGetValue(key, out var found) ? found : default; @@ -177,10 +173,6 @@ namespace BizHawk.Common.CollectionExtensions /// If the key is not present, returns . /// backported from .NET Core 2.0 /// - public static TValue? GetValueOrDefault(IDictionary dictionary, TKey key, TValue defaultValue) - => dictionary.TryGetValue(key, out var found) ? found : defaultValue; - - /// public static TValue? GetValueOrDefault(this IReadOnlyDictionary dictionary, TKey key, TValue defaultValue) => dictionary.TryGetValue(key, out var found) ? found : defaultValue; #endif