Fix warnings

This commit is contained in:
drdev
2016-04-17 20:35:59 +00:00
parent 4b5e6acbc0
commit f1e952feac
3 changed files with 4 additions and 4 deletions

View File

@@ -96,8 +96,7 @@ public class Main {
@Override @Override
public void preventSystemSleep(boolean preventSleep) { public void preventSystemSleep(boolean preventSleep) {
int k = 1;
k++;
} }
} }
} }

View File

@@ -1,6 +1,7 @@
package forge.quest; package forge.quest;
import com.google.common.collect.Lists; import com.google.common.collect.Lists;
import forge.GuiBase; import forge.GuiBase;
import forge.deck.Deck; import forge.deck.Deck;
import forge.deck.DeckGroup; import forge.deck.DeckGroup;
@@ -269,6 +270,7 @@ public class QuestDraftUtils {
newMatch.startMatch(rules, null, nextMatch.matchStarter, nextMatch.humanPlayer, GuiBase.getInterface().getNewGuiGame()); newMatch.startMatch(rules, null, nextMatch.matchStarter, nextMatch.humanPlayer, GuiBase.getInterface().getNewGuiGame());
} }
@SuppressWarnings("unused")
private static List<RegisteredPlayer> registerTournamentPlayers(TournamentPairing pairing, QuestEventDraft draft, DeckGroup decks) { private static List<RegisteredPlayer> registerTournamentPlayers(TournamentPairing pairing, QuestEventDraft draft, DeckGroup decks) {
List<RegisteredPlayer> registered = Lists.newArrayList(); List<RegisteredPlayer> registered = Lists.newArrayList();
for (TournamentPlayer pl : pairing.getPairedPlayers()) { for (TournamentPlayer pl : pairing.getPairedPlayers()) {
@@ -281,6 +283,7 @@ public class QuestDraftUtils {
return registered; return registered;
} }
@SuppressWarnings("unused")
private static void updateFromTournament(final IGuiGame gui) { private static void updateFromTournament(final IGuiGame gui) {
// If Human involved launch into a UI, if not show a "Simulating" screen. And simulate the game off-thread // If Human involved launch into a UI, if not show a "Simulating" screen. And simulate the game off-thread
if (waitForUserInput || matchInProgress || gui == null) { if (waitForUserInput || matchInProgress || gui == null) {

View File

@@ -4,7 +4,6 @@ import com.google.common.collect.Lists;
import forge.player.GamePlayerUtil; import forge.player.GamePlayerUtil;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.HashSet;
import java.util.List; import java.util.List;
@SuppressWarnings("serial") @SuppressWarnings("serial")
@@ -30,7 +29,6 @@ public class TournamentRoundRobin extends AbstractTournament {
public void generateActivePairings() { public void generateActivePairings() {
int numPlayers = this.remainingPlayers.size(); int numPlayers = this.remainingPlayers.size();
List<TournamentPlayer> pair = new ArrayList<>(); List<TournamentPlayer> pair = new ArrayList<>();
int count = 0;
List<TournamentPlayer> roundPairings = Lists.newArrayList(this.remainingPlayers); List<TournamentPlayer> roundPairings = Lists.newArrayList(this.remainingPlayers);
if (numPlayers % 2 == 1) { if (numPlayers % 2 == 1) {