diff --git a/src/net/socialgamer/cah/data/BlackDeck.java b/src/net/socialgamer/cah/data/BlackDeck.java index 283e14a..f0c357b 100644 --- a/src/net/socialgamer/cah/data/BlackDeck.java +++ b/src/net/socialgamer/cah/data/BlackDeck.java @@ -26,7 +26,6 @@ package net.socialgamer.cah.data; import java.util.ArrayList; import java.util.Collections; import java.util.HashSet; -import java.util.LinkedList; import java.util.List; import java.util.Set; @@ -43,7 +42,6 @@ import net.socialgamer.cah.db.CardSet; */ public class BlackDeck { private final List deck; - private final List dealt; private final List discard; /** @@ -56,7 +54,6 @@ public class BlackDeck { } deck = new ArrayList(allCards); Collections.shuffle(deck); - dealt = new LinkedList(); discard = new ArrayList(deck.size()); } @@ -73,7 +70,6 @@ public class BlackDeck { } // we have an ArrayList here, so this is faster final BlackCard card = deck.remove(deck.size() - 1); - dealt.add(card); return card; } diff --git a/src/net/socialgamer/cah/data/WhiteDeck.java b/src/net/socialgamer/cah/data/WhiteDeck.java index d52f004..03f452a 100644 --- a/src/net/socialgamer/cah/data/WhiteDeck.java +++ b/src/net/socialgamer/cah/data/WhiteDeck.java @@ -26,7 +26,6 @@ package net.socialgamer.cah.data; import java.util.ArrayList; import java.util.Collections; import java.util.HashSet; -import java.util.LinkedList; import java.util.List; import java.util.Set; @@ -43,7 +42,6 @@ import net.socialgamer.cah.db.WhiteCard; */ public class WhiteDeck { private final List deck; - private final List dealt; private final List discard; private int lastBlankCardId = -1; @@ -60,7 +58,6 @@ public class WhiteDeck { deck.add(createBlankCard()); } Collections.shuffle(deck); - dealt = new LinkedList(); discard = new ArrayList(deck.size()); } @@ -77,7 +74,6 @@ public class WhiteDeck { } // we have an ArrayList here, so this is faster final WhiteCard card = deck.remove(deck.size() - 1); - dealt.add(card); return card; }