[pypy-commit] pypy annotator: kill dead code

rlamy noreply at buildbot.pypy.org
Sat Dec 14 12:47:53 CET 2013


Author: Ronan Lamy <ronan.lamy at gmail.com>
Branch: annotator
Changeset: r68437:6dedfb7fe4c9
Date: 2013-12-14 03:14 +0100
http://bitbucket.org/pypy/pypy/changeset/6dedfb7fe4c9/

Log:	kill dead code

diff --git a/rpython/annotator/model.py b/rpython/annotator/model.py
--- a/rpython/annotator/model.py
+++ b/rpython/annotator/model.py
@@ -798,11 +798,7 @@
 
 def missing_operation(cls, name):
     def default_op(*args):
-        if args and isinstance(args[0], tuple):
-            flattened = tuple(args[0]) + args[1:]
-        else:
-            flattened = args
-        for arg in flattened:
+        for arg in args:
             if arg.__class__ is SomeObject and arg.knowntype is not type:
                 return SomeObject()
         bookkeeper = rpython.annotator.bookkeeper.getbookkeeper()


More information about the pypy-commit mailing list