Skip to content

Commit

Permalink
Expand comment and remove unused imports.
Browse files Browse the repository at this point in the history
  • Loading branch information
asvitkine committed Sep 29, 2023
1 parent 0b2544c commit 7e0a9ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -992,6 +992,8 @@ protected Collection<Unit> getUnitsToBePlaced(
// Filter each type separately, since we don't want a max on one type to filter out all units of
// another type, if the two types have a combined limit. UnitStackingLimitFilter doesn't do
// that directly since other call sites (e.g. move validation) do need the combined filtering.
// But we need to do it this way here, since the result will be shown for choosing which units
// to build (where we want to show all the types that can be built).
final var result = new ArrayList<Unit>();
for (UnitType ut : UnitUtils.getUnitTypesFromUnitList(units)) {
result.addAll(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.containsInAnyOrder;
import static org.hamcrest.Matchers.hasSize;
import static org.hamcrest.Matchers.not;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse;

Expand All @@ -19,7 +18,6 @@
import games.strategy.engine.data.UnitType;
import games.strategy.engine.delegate.IDelegateBridge;
import games.strategy.triplea.delegate.data.PlaceableUnits;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
Expand Down

0 comments on commit 7e0a9ca

Please sign in to comment.