Author: Ronan Lamy <[email protected]>
Branch: __debug__-optimize
Changeset: r97078:2c5d479229ac
Date: 2019-08-06 16:17 +0100
http://bitbucket.org/pypy/pypy/changeset/2c5d479229ac/

Log:    remove dead code

diff --git a/pypy/interpreter/astcompiler/optimize.py 
b/pypy/interpreter/astcompiler/optimize.py
--- a/pypy/interpreter/astcompiler/optimize.py
+++ b/pypy/interpreter/astcompiler/optimize.py
@@ -267,13 +267,6 @@
             return values[0]
         return bop
 
-    def visit_Repr(self, rep):
-        w_const = rep.value.as_constant(self.space, self.compile_info)
-        if w_const is not None:
-            w_repr = self.space.repr(w_const)
-            return ast.Constant(w_repr, rep.lineno, rep.col_offset)
-        return rep
-
     def visit_Name(self, name):
         """Turn loading None, True, and False into a constant lookup."""
         if name.ctx == ast.Del:
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to