Remove unreachable NeighborList code

This commit is contained in:
Florian Bruhin 2016-06-06 16:21:05 +02:00
parent 57a1847e3a
commit 35c7e2b768

View File

@ -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()