Fix #4710: remove the removeAll function

This function is unused, and it never worked right anyway due to a bug.
This commit is contained in:
Joseph C. Sible committed 2017-09-25 16:42:07 -04:00
1 parent a4957dab53
commit ef76b8b094
1 file changed
-19
@@ -110,25 +110,6 @@ public class FrequencyManager
}
}
public int removeAll(String user)
{
int amount = 0;
for(Iterator<Frequency> iter = getFrequencies().iterator(); iter.hasNext();)
{
Frequency iterFreq = iter.next();
if(iterFreq.ownerUUID.equals(user))
{
iter.remove();
dataHandler.markDirty();
amount++;
}
}
return amount;
}
public void deactivate(Coord4D coord)
{
for(Frequency freq : frequencies)