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 raise IndexError
except IndexError: except IndexError:
if self._mode == self.Modes.edge: if self._mode == self.Modes.edge:
if offset == 0: assert offset != 0
new = self.curitem() if offset > 0:
elif offset > 0:
new = self.lastitem() new = self.lastitem()
else: else:
new = self.firstitem() new = self.firstitem()