lib.memory: remove Memory.Init.depth.
This attribute is fully redundant with `.__len__()`, and is out of place on a `list`-like container like `Memory.Init`. The `.shape` attribute, however, provides a unique function.
This commit is contained in:
parent
2640033316
commit
fc84b8decf
2 changed files with 1 additions and 6 deletions
|
|
@ -88,11 +88,6 @@ class Memory(wiring.Component):
|
|||
def shape(self):
|
||||
return self._shape
|
||||
|
||||
# TODO: redundant with __len__
|
||||
@property
|
||||
def depth(self):
|
||||
return self._depth
|
||||
|
||||
def __getitem__(self, index):
|
||||
return self._elems[index]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue