Alex Gaynor avatar Alex Gaynor committed 2c343bd

remove dead code (plus some random import cleanup)

Comments (0)

Files changed (3)

pypy/objspace/fake/checkmodule.py

         for name in module.loaders:
             module._load_lazily(space, name)
     #
-    space.translates(**{'translation.list_comprehension_operations':True})
+    space.translates(**{'translation.list_comprehension_operations': True})

pypy/objspace/fake/objspace.py

-from pypy.interpreter.baseobjspace import W_Root, ObjSpace
-from pypy.interpreter.baseobjspace import Wrappable, SpaceCache
+from pypy.annotation.model import SomeInstance, s_None
 from pypy.interpreter import argument, gateway
+from pypy.interpreter.baseobjspace import W_Root, ObjSpace, Wrappable, SpaceCache
 from pypy.interpreter.typedef import TypeDef, GetSetProperty
-from pypy.annotation.model import SomeInstance, s_None
-from pypy.rpython.extregistry import ExtRegistryEntry
-from pypy.rpython.lltypesystem import lltype
-from pypy.tool.sourcetools import compile2, func_with_new_name
-from pypy.rlib.unroll import unrolling_iterable
 from pypy.rlib.objectmodel import instantiate, we_are_translated
 from pypy.rlib.nonconst import NonConstant
 from pypy.rlib.rarithmetic import r_uint, r_singlefloat
+from pypy.rpython.extregistry import ExtRegistryEntry
+from pypy.rpython.lltypesystem import lltype
+from pypy.tool.option import make_config
+from pypy.tool.sourcetools import compile2, func_with_new_name
 from pypy.translator.translator import TranslationContext
-from pypy.tool.option import make_config
 
 
 class W_MyObject(Wrappable):

pypy/objspace/std/frame.py

     if space.config.objspace.std.optimized_comparison_op:
         StdObjSpaceFrame.COMPARE_OP = fast_COMPARE_OP
     return StdObjSpaceFrame
-
-
-def get_logging():
-    for name, func in pyframe.PyFrame.__dict__.iteritems():
-        if hasattr(func, 'binop'):
-            operationname = func.binop
-            def make_opimpl(operationname):
-                def opimpl(f, *ignored):
-                    operation = getattr(f.space, operationname)
-                    w_2 = f.popvalue()
-                    w_1 = f.popvalue()
-                    if we_are_translated():
-                        s = operationname + ' ' + str(w_1) + ' ' + str(w_2)
-                    else:
-                        names = (w_1.__class__.__name__ + ' ' +
-                                 w_2.__class__.__name__)
-                        s = operationname + ' ' + names
-                    f._space_op_types.append(s)
-                    w_result = operation(w_1, w_2)
-                    f.pushvalue(w_result)
-                return func_with_new_name(opimpl,
-                                          "opcode_impl_for_%s" % operationname)
-            yield name, make_opimpl(operationname)
-        elif hasattr(func, 'unaryop'):
-            operationname = func.unaryop
-            def make_opimpl(operationname):
-                def opimpl(f, *ignored):
-                    operation = getattr(f.space, operationname)
-                    w_1 = f.popvalue()
-                    if we_are_translated():
-                        s = operationname + ' ' + str(w_1)
-                    else:
-                        s = operationname + ' ' + w_1.__class__.__name__
-                    f._space_op_types.append(s)
-                    w_result = operation(w_1)
-                    f.pushvalue(w_result)
-                return func_with_new_name(opimpl,
-                                          "opcode_impl_for_%s" % operationname)
-            yield name, make_opimpl(operationname)
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.