Skip to content
Snippets Groups Projects
Commit 3d671e62 authored by Haakon Gunleiksrud's avatar Haakon Gunleiksrud
Browse files

#67 Removes unnecessary code.

parent fb1bd367
No related branches found
No related tags found
1 merge request!69Resolve "TournamentFinishedState"
......@@ -311,7 +311,7 @@ public class CreateJoinTournamentState extends State {
private void handleEnterBtnClick(Tournament t, Round r){
System.out.println("Entered tournament with id = "+ t.get_id());
if(r == null){
gsm.set(new FinishedTournamentState(gsm,t,r));
gsm.set(new FinishedTournamentState(gsm,t));
}
else{
gsm.set(new ViewTournamentState(gsm, t, r));
......
......@@ -30,7 +30,6 @@ public class FinishedTournamentState extends State {
private Table btnTable;
private ScrollPane scrollPane;
private Tournament tournament;
private Round round;
private Dialog dialog;
private int padding = 50;
......@@ -53,10 +52,9 @@ public class FinishedTournamentState extends State {
};
}
public FinishedTournamentState(GameStateManager gsm, Tournament tournament, Round r) {
public FinishedTournamentState(GameStateManager gsm, Tournament tournament) {
super(gsm);
this.tournament = tournament;
this.round = r;
tournamentNameText = new Label(tournament.getName(), skin, "big");
try {
points = QueryIntermediate.getTournamentPoints(tournament.get_id());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment