[pypy-commit] pypy refactor-signature: kill 2 pieces of dead code.
alex_gaynor
noreply at buildbot.pypy.org
Tue Dec 20 01:11:34 CET 2011
Author: Alex Gaynor <alex.gaynor at gmail.com>
Branch: refactor-signature
Changeset: r50734:d628f620b13e
Date: 2011-12-19 18:10 -0600
http://bitbucket.org/pypy/pypy/changeset/d628f620b13e/
Log: kill 2 pieces of dead code.
diff --git a/pypy/module/micronumpy/interp_numarray.py b/pypy/module/micronumpy/interp_numarray.py
--- a/pypy/module/micronumpy/interp_numarray.py
+++ b/pypy/module/micronumpy/interp_numarray.py
@@ -811,9 +811,6 @@
def getitem(self, item):
return self.dtype.getitem(self.storage, item)
- def setitem_w(self, space, item, w_value):
- return self.setitem(item, self.dtype.coerce(space, w_value))
-
def setitem(self, item, value):
self.invalidated()
self.dtype.setitem(self.storage, item, value)
diff --git a/pypy/module/micronumpy/signature.py b/pypy/module/micronumpy/signature.py
--- a/pypy/module/micronumpy/signature.py
+++ b/pypy/module/micronumpy/signature.py
@@ -35,7 +35,7 @@
self.arrays = arrays[:]
for i in range(len(self.iterators)):
iter = self.iterators[i]
- if not isinstance(iter, ConstantIterator):# or not isinstance(iter, BroadcastIterator):
+ if not isinstance(iter, ConstantIterator):
self.final_iter = i
break
else:
@@ -255,7 +255,7 @@
class Call2(Signature):
_immutable_fields_ = ['binfunc', 'name', 'calc_dtype', 'left', 'right']
-
+
def __init__(self, func, name, calc_dtype, left, right):
self.binfunc = func
self.left = left
@@ -288,7 +288,7 @@
def _create_iter(self, iterlist, arraylist, arr, res_shape, chunklist):
from pypy.module.micronumpy.interp_numarray import Call2
-
+
assert isinstance(arr, Call2)
self.left._create_iter(iterlist, arraylist, arr.left, res_shape,
chunklist)
More information about the pypy-commit
mailing list