[pypy-commit] pypy refactor-signature: dead code

alex_gaynor noreply at buildbot.pypy.org
Tue Dec 20 22:23:31 CET 2011


Author: Alex Gaynor <alex.gaynor at gmail.com>
Branch: refactor-signature
Changeset: r50779:970ab217c79f
Date: 2011-12-20 15:23 -0600
http://bitbucket.org/pypy/pypy/changeset/970ab217c79f/

Log:	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
@@ -658,9 +658,6 @@
         return self
 
 
-    def get_storage(self, space):
-        raise OperationError(space.w_TypeError, space.wrap("Cannot get array interface on scalars in pypy"))
-
 class VirtualArray(BaseArray):
     """
     Class for representing virtual arrays, such as binary ops or ufuncs
@@ -1051,13 +1048,6 @@
         self.invalidated()
         self.dtype.setitem(self.storage, item, value)
 
-    def start_iter(self, res_shape=None):
-        if self.order == 'C':
-            if res_shape is not None and res_shape != self.shape:
-                return BroadcastIterator(self, res_shape)
-            return ArrayIterator(self.size)
-        raise NotImplementedError  # use ViewIterator simply, test it
-
     def setshape(self, space, new_shape):
         self.shape = new_shape
         self.calc_strides(new_shape)
@@ -1065,9 +1055,6 @@
     def create_sig(self, res_shape):
         return self.array_sig(res_shape)
 
-    def get_storage(self, space):
-        return self.storage
-
     def __del__(self):
         lltype.free(self.storage, flavor='raw', track_allocation=False)
 


More information about the pypy-commit mailing list