Skip to content

Commit

Permalink
Remove un-needed constructors
Browse files Browse the repository at this point in the history
  • Loading branch information
Mw3y committed May 24, 2024
1 parent 5a41e5b commit c695baa
Showing 1 changed file with 2 additions and 17 deletions.
19 changes: 2 additions & 17 deletions src/ch/epfl/chacun/ActionEncoder.java
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ private static List<Pos> sortFringe(GameState gameState) {
*/
private static List<Occupant> sortOccupants(GameState gameState) {
return gameState.board().occupants().stream()
.sorted(Comparator.comparing(Occupant::zoneId)).toList();
.sorted(Comparator.comparing(Occupant::zoneId))
.toList();
}

/**
Expand Down Expand Up @@ -248,22 +249,6 @@ public record StateAction(GameState gameState, String action) {
* @author Balthazar Baillat (sciper: 373420)
*/
public static class IllegalActionException extends Exception {

/**
* Constructs an illegal action exception.
*/
public IllegalActionException() {
super();
}

/**
* Constructs an illegal action exception with a message.
*
* @param message the message
*/
public IllegalActionException(String message) {
super(message);
}
}


Expand Down

0 comments on commit c695baa

Please sign in to comment.