Remove redundant operations on LimitedSizeList

This commit is contained in:
nossr50 2019-05-18 15:49:14 -07:00
parent 1e1b803cce
commit 04b4a8e069

View File

@ -41,7 +41,7 @@ public class LimitedSizeList {
public boolean contains(Location targetLoc) { public boolean contains(Location targetLoc) {
for (Location iter : limitedSizeOrderedList) { for (Location iter : limitedSizeOrderedList) {
if (iter == null) if (iter == null)
continue; return false;
if (iter.getX() == targetLoc.getX() if (iter.getX() == targetLoc.getX()
&& iter.getY() == targetLoc.getY() && iter.getY() == targetLoc.getY()