@@ -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{
392390ParameterInfo [ ] parameters = method . GetParameters ( ) ;
393391Type [ ] parameterTypes = ( from param in parameters select param . ParameterType ) . ToArray ( ) ;