Skip to content

Commit 4401de7

Browse files
committed
remove unused code
1 parent bd11d18 commit 4401de7

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/AspectCore.Core/Utils/ProxyGeneratorUtils.CovariantReturnMethod.cs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
using System.Linq;
44
using System.Reflection;
55
using AspectCore.Extensions;
6+
using static AspectCore.Extensions.MethodInfoExtensions;
67

78
// ReSharper disable once CheckNamespace
89
namespace AspectCore.Utils
@@ -18,14 +19,9 @@ internal static IReadOnlyDictionary<MethodInfo, HashSet<MethodInfo>> GetCovarian
1819
{
1920
var result = new Dictionary<MethodInfo, HashSet<MethodInfo>>();
2021
// No PreserveBaseOverridesAttribute means that the runtime does not support covariant return types.
21-
if (AspectCore.Extensions.MethodInfoExtensions.PreserveBaseOverridesAttribute is null)
22+
if (PreserveBaseOverridesAttribute is null)
2223
return result;
2324

24-
25-
var methods = implType.GetMethods(BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance)
26-
.ToHashSet();
27-
28-
const MethodAttributes attributes = MethodAttributes.HideBySig | MethodAttributes.Virtual | MethodAttributes.NewSlot;
2925
var covariantReturnMethods = implType
3026
.GetMethods(BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance)
3127
.Where(m => m.IsPreserveBaseOverride(true))

0 commit comments

Comments
 (0)