summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1995-03-22 10:09:02 (GMT)
committerGuido van Rossum <guido@python.org>1995-03-22 10:09:02 (GMT)
commit684ed9891bac78762be695badc2f3ae1c51232ae (patch)
tree5a430e3036bfb9af1d0dbeebcde2859e65398065 /Python
parentaaec403a75afdf3125f7ffa343fa004b5ec7fde2 (diff)
downloadcpython-684ed9891bac78762be695badc2f3ae1c51232ae.zip
cpython-684ed9891bac78762be695badc2f3ae1c51232ae.tar.gz
cpython-684ed9891bac78762be695badc2f3ae1c51232ae.tar.bz2
remove unused code for tp_call
Diffstat (limited to 'Python')
-rw-r--r--Python/ceval.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/Python/ceval.c b/Python/ceval.c
index 6e026fd..041ae4d 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -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