[pypy-commit] pypy default: Kill dead outdated code (this defines a wrap() function that is not

arigo noreply at buildbot.pypy.org
Wed Aug 8 19:15:19 CEST 2012


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r56658:ca7730a740a9
Date: 2012-08-08 19:14 +0200
http://bitbucket.org/pypy/pypy/changeset/ca7730a740a9/

Log:	Kill dead outdated code (this defines a wrap() function that is not
	used any more in the rest of the function).

diff --git a/pypy/jit/metainterp/executor.py b/pypy/jit/metainterp/executor.py
--- a/pypy/jit/metainterp/executor.py
+++ b/pypy/jit/metainterp/executor.py
@@ -277,19 +277,6 @@
 
 
 def _make_execute_list():
-    if 0:     # enable this to trace calls to do_xxx
-        def wrap(fn):
-            def myfn(*args):
-                print '<<<', fn.__name__
-                try:
-                    return fn(*args)
-                finally:
-                    print fn.__name__, '>>>'
-            return myfn
-    else:
-        def wrap(fn):
-            return fn
-    #
     execute_by_num_args = {}
     for key, value in rop.__dict__.items():
         if not key.startswith('_'):


More information about the pypy-commit mailing list