From cf0c71d39bddba57c9b24f0f47f1d2f413abf22b Mon Sep 17 00:00:00 2001 From: Chris Cameron Date: Thu, 8 Nov 2018 13:02:49 -0500 Subject: [PATCH] refactor: Removing redundant generic constraints --- ICD.Common.Utils/AttributeUtils.cs | 3 --- 1 file changed, 3 deletions(-) diff --git a/ICD.Common.Utils/AttributeUtils.cs b/ICD.Common.Utils/AttributeUtils.cs index d2977d8..beda60c 100644 --- a/ICD.Common.Utils/AttributeUtils.cs +++ b/ICD.Common.Utils/AttributeUtils.cs @@ -148,7 +148,6 @@ namespace ICD.Common.Utils /// /// public static IEnumerable GetClassAttributes() - where T : Attribute { return s_AttributeToTypeCache.Select(kvp => kvp.Key) .OfType(); @@ -162,7 +161,6 @@ namespace ICD.Common.Utils /// [CanBeNull] public static T GetClassAttribute(Type type) - where T : Attribute { if (type == null) throw new ArgumentNullException("type"); @@ -177,7 +175,6 @@ namespace ICD.Common.Utils /// /// public static IEnumerable GetClassAttributes(Type type) - where T : Attribute { if (type == null) throw new ArgumentNullException("type");