Skip to content

Commit 2caca2f

Browse files
committed
cleanup
1 parent e640c15 commit 2caca2f

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/AspectCore.Core/Utils/ProxyGeneratorUtils.cs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,12 @@
55
using System.Linq;
66
using System.Reflection;
77
using System.Reflection.Emit;
8-
using System.Runtime.InteropServices.ComTypes;
98
using System.Threading;
109
using System.Threading.Tasks;
11-
using System.Xml.Linq;
1210
using AspectCore.DynamicProxy;
1311
using AspectCore.Extensions;
1412
using AspectCore.Extensions.Reflection;
1513
using AspectCore.Extensions.Reflection.Emit;
16-
using TypeExtensions = AspectCore.Extensions.TypeExtensions;
1714

1815
namespace AspectCore.Utils
1916
{
@@ -465,7 +462,7 @@ internal static MethodBuilder DefineExplicitMethod(MethodInfo method, Type implT
465462
return methodBuilder;
466463
}
467464

468-
internal static MethodBuilder DefineClassMethod(MethodInfo method, Type implType, TypeDesc typeDesc, MethodInfo covariantReturnMethod = null)
465+
internal static MethodBuilder DefineClassMethod(MethodInfo method, Type implType, TypeDesc typeDesc)
469466
{
470467
var attributes = OverrideMethodAttributes;
471468

@@ -484,7 +481,7 @@ internal static MethodBuilder DefineClassMethod(MethodInfo method, Type implType
484481
attributes |= MethodAttributes.FamORAssem;
485482
}
486483

487-
var methodBuilder = DefineMethod(method, method.Name, attributes, implType, typeDesc, covariantReturnMethod);
484+
var methodBuilder = DefineMethod(method, method.Name, attributes, implType, typeDesc);
488485
return methodBuilder;
489486
}
490487

0 commit comments

Comments
 (0)