From 45f9005c7d4694d1df67e8fdb211411eaf48438d Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Tue, 9 Aug 2022 10:57:47 +0700 Subject: Remove unnecessary constraint --- crypto/src/util/collections/CollectionUtilities.cs | 1 - 1 file changed, 1 deletion(-) diff --git a/crypto/src/util/collections/CollectionUtilities.cs b/crypto/src/util/collections/CollectionUtilities.cs index 41b558130..26b3f2a1d 100644 --- a/crypto/src/util/collections/CollectionUtilities.cs +++ b/crypto/src/util/collections/CollectionUtilities.cs @@ -32,7 +32,6 @@ namespace Org.BouncyCastle.Utilities.Collections } public static T GetValueOrKey(IDictionary d, T k) - where T : class { return d.TryGetValue(k, out var v) ? v : k; } -- cgit 1.4.1