]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
remove unused code for tp_call
authorGuido van Rossum <guido@python.org>
Wed, 22 Mar 1995 10:09:02 +0000 (10:09 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 22 Mar 1995 10:09:02 +0000 (10:09 +0000)
Python/ceval.c

index 6e026fd006a8f2131815400b99390cd6e8a28b30..041ae4dfc3d8abc9fbd33d4383bc0bf2d40a6267 100644 (file)
@@ -2023,20 +2023,8 @@ call_object(func, arg)
         binaryfunc call;
         object *result;
         
-        if (call = func->ob_type->tp_call) {
-#if 0
-               /* XXX Why is this here??? */
-               int size = gettuplesize(arg);
-                if (arg) {
-                       size = gettuplesize(arg);
-                       if (size == 1)
-                               arg = GETTUPLEITEM(arg, 0);
-                       else if (size == 0)
-                               arg = NULL;
-               }
-#endif
+        if (call = func->ob_type->tp_call)
                 result = (*call)(func, arg);
-        }
         else if (is_instancemethodobject(func) || is_funcobject(func))
                result = call_function(func, arg);
        else