[pypy-commit] pypy Opcode-class: kill dead code
rlamy
noreply at buildbot.pypy.org
Sun May 12 22:18:53 CEST 2013
Author: Ronan Lamy <ronan.lamy at gmail.com>
Branch: Opcode-class
Changeset: r64021:890be79024a4
Date: 2013-05-05 19:18 +0100
http://bitbucket.org/pypy/pypy/changeset/890be79024a4/
Log: kill dead code
diff --git a/rpython/flowspace/objspace.py b/rpython/flowspace/objspace.py
--- a/rpython/flowspace/objspace.py
+++ b/rpython/flowspace/objspace.py
@@ -148,15 +148,6 @@
return val
return self.unwrap(w_obj)
- def uint_w(self, w_obj):
- if isinstance(w_obj, Constant):
- val = w_obj.value
- if type(val) is not rarithmetic.r_uint:
- raise TypeError("expected unsigned: " + repr(w_obj))
- return val
- return self.unwrap(w_obj)
-
-
def str_w(self, w_obj):
if isinstance(w_obj, Constant):
val = w_obj.value
@@ -165,14 +156,6 @@
return val
return self.unwrap(w_obj)
- def float_w(self, w_obj):
- if isinstance(w_obj, Constant):
- val = w_obj.value
- if type(val) is not float:
- raise TypeError("expected float: " + repr(w_obj))
- return val
- return self.unwrap(w_obj)
-
def unwrap(self, w_obj):
if isinstance(w_obj, Variable):
raise UnwrapException
@@ -305,8 +288,6 @@
frame.handle_implicit_exceptions([StopIteration, RuntimeError])
return w_item
- def setitem_str(self, w_obj, key, w_value):
- return self.setitem(w_obj, self.wrap(key), w_value)
def getattr(self, w_obj, w_name):
# handling special things like sys
More information about the pypy-commit
mailing list