Refactor: Delete commented out code blocks in GameImpl.java (#9108)

Co-authored-by: DeepCrimson <deepcrimson@users.noreplyl.github.com>
This commit is contained in:
DeepCrimson 2022-06-16 21:27:51 -07:00 committed by GitHub
parent 5c1fe5075f
commit ae88cc2f66
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -724,10 +724,6 @@ public abstract class GameImpl implements Game {
return Optional.empty(); return Optional.empty();
} }
// @Override
// public Zone getZone(UUID objectId) {
// return state.getZone(objectId);
// }
@Override @Override
public void setZone(UUID objectId, Zone zone) { public void setZone(UUID objectId, Zone zone) {
state.setZone(objectId, zone); state.setZone(objectId, zone);
@ -752,30 +748,6 @@ public abstract class GameImpl implements Game {
} }
} }
// /**
// * Starts check if game is over or if playerId is given let the player
// * concede.
// *
// * @param playerId
// * @return
// */
// @Override
// public synchronized boolean gameOver(UUID playerId) {
// if (playerId == null) {
// boolean result = checkIfGameIsOver();
// return result;
// } else {
// logger.debug("Game over for player Id: " + playerId + " gameId " + getId());
// concedingPlayers.add(playerId);
// Player player = getPlayer(state.getPriorityPlayerId());
// if (player != null && player.isHuman()) {
// player.signalPlayerConcede();
// } else {
// checkConcede();
// }
// return true;
// }
// }
@Override @Override
public void setConcedingPlayer(UUID playerId) { public void setConcedingPlayer(UUID playerId) {
Player player = null; Player player = null;