Remove unreachable NeighborList code
This commit is contained in:
parent
57a1847e3a
commit
35c7e2b768
@ -141,9 +141,8 @@ class NeighborList(collections.abc.Sequence):
|
||||
raise IndexError
|
||||
except IndexError:
|
||||
if self._mode == self.Modes.edge:
|
||||
if offset == 0:
|
||||
new = self.curitem()
|
||||
elif offset > 0:
|
||||
assert offset != 0
|
||||
if offset > 0:
|
||||
new = self.lastitem()
|
||||
else:
|
||||
new = self.firstitem()
|
||||
|
Loading…
Reference in New Issue
Block a user