Skip to content

Commit

Permalink
Removed duplicate code
Browse files Browse the repository at this point in the history
  • Loading branch information
pv711 committed Jan 2, 2022
1 parent be59dbd commit a62b608
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions engine/src/main/battlecode/world/RobotControllerImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -308,10 +308,6 @@ public MapLocation[] getAllLocationsWithinRadiusSquared(MapLocation center, int
// ****** READINESS METHODS **********
// ***********************************

private boolean isLocationOccupied(MapLocation loc) throws GameActionException {
return this.gameWorld.getRobot(loc) != null;
}

private void assertIsActionReady() throws GameActionException {
if (!this.robot.getMode().canAct)
throw new GameActionException(CANT_DO_THAT,
Expand Down

0 comments on commit a62b608

Please sign in to comment.