🌐 AI搜索 & 代理 主页
Skip to content

Commit 98a740e

Browse files
rmadsen-ksfilmor
authored andcommitted
minor cleanup
1 parent 0c99551 commit 98a740e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/runtime/Types/ClassDerived.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ internal static Type CreateDerivedType(string name,
253253

254254

255255
// override the virtual method to call out to the python method, if there is one.
256-
AddVirtualMethod(method, baseType, typeBuilder, isDeclared);
256+
AddVirtualMethod(method, typeBuilder);
257257
}
258258

259259
// Add any additional methods and properties explicitly exposed from Python.
@@ -384,10 +384,8 @@ private static void AddConstructor(ConstructorInfo ctor, Type baseType, TypeBuil
384384
/// and calls it, otherwise fall back to the base class method.
385385
/// </summary>
386386
/// <param name="method">virtual method to be overridden</param>
387-
/// <param name="baseType">Python callable object</param>
388387
/// <param name="typeBuilder">TypeBuilder for the new type the method is to be added to</param>
389-
/// <param name="isDeclared"></param>
390-
private static void AddVirtualMethod(MethodInfo method, Type baseType, TypeBuilder typeBuilder, bool isDeclared)
388+
private static void AddVirtualMethod(MethodInfo method, TypeBuilder typeBuilder)
391389
{
392390
ParameterInfo[] parameters = method.GetParameters();
393391
Type[] parameterTypes = (from param in parameters select param.ParameterType).ToArray();

0 commit comments

Comments
 (0)