Skip to content

Commit 414d4fe

Browse files
Remove unused and bugged(!) helper method
1 parent db6c3d8 commit 414d4fe

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

src/Shared/Microsoft.AspNetCore.Razor.Utilities.Shared/DictionaryExtensions.cs

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -76,21 +76,4 @@ public static TValue GetOrAdd<TKey, TValue>(
7676
return value;
7777
}
7878
}
79-
80-
public static TValue GetValueOrDefault<TKey, TValue>(
81-
this Dictionary<TKey, TValue> dictionary,
82-
TKey key,
83-
TValue defaultValue)
84-
where TKey : notnull
85-
{
86-
if (dictionary.TryGetValue(key, out var existingValue))
87-
{
88-
return existingValue;
89-
}
90-
else
91-
{
92-
dictionary.Add(key, defaultValue);
93-
return defaultValue;
94-
}
95-
}
9679
}

0 commit comments

Comments
 (0)