Author: Simon Cross <[email protected]>
Branch: remove-string-smm
Changeset: r63427:eed07b5588c3
Date: 2013-04-16 21:38 +0200
http://bitbucket.org/pypy/pypy/changeset/eed07b5588c3/

Log:    Kill str_or_int.

diff --git a/pypy/interpreter/baseobjspace.py b/pypy/interpreter/baseobjspace.py
--- a/pypy/interpreter/baseobjspace.py
+++ b/pypy/interpreter/baseobjspace.py
@@ -1301,11 +1301,6 @@
             return None
         return self.str_w(w_obj)
 
-    def str_or_int_w(self, w_obj):
-        if self.is_true(self.isinstance(w_obj, self.w_str)):
-            return self.str_w(w_obj)
-        return self.int_w(w_obj)
-
     def str_w(self, w_obj):
         return w_obj.str_w(self)
 
diff --git a/pypy/interpreter/gateway.py b/pypy/interpreter/gateway.py
--- a/pypy/interpreter/gateway.py
+++ b/pypy/interpreter/gateway.py
@@ -132,9 +132,6 @@
     def visit_str_or_None(self, el, app_sig):
         self.checked_space_method(el, app_sig)
 
-    def visit_str_or_int(self, el, app_sig):
-        self.checked_space_method(el, app_sig)
-
     def visit_str0(self, el, app_sig):
         self.checked_space_method(el, app_sig)
 
@@ -248,9 +245,6 @@
     def visit_str_or_None(self, typ):
         self.run_args.append("space.str_or_None_w(%s)" % (self.scopenext(),))
 
-    def visit_str_or_int(self, typ):
-        self.run_args.append("space.str_or_int_w(%s)" % (self.scopenext(),))
-
     def visit_str0(self, typ):
         self.run_args.append("space.str0_w(%s)" % (self.scopenext(),))
 
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to