Removed unused code from Sets.java

This commit is contained in:
North 2012-10-21 18:34:47 +03:00
parent 271aaab5fd
commit 0c646d60e1

View file

@ -56,7 +56,6 @@ public class Sets extends HashMap<String, ExpansionSet> {
private static Set<String> nonLandNames;
private static Set<String> creatureTypes;
private static List<Card> cards;
private static Map<String, Card> cardMap;
protected static Random rnd = new Random();
private static boolean loaded;
@ -69,7 +68,6 @@ public class Sets extends HashMap<String, ExpansionSet> {
names = new TreeSet<String>();
nonLandNames = new TreeSet<String>();
cards = new ArrayList<Card>();
cardMap = new HashMap<String, Card>();
creatureTypes = new TreeSet<String>();
this.addSet(AlaraReborn.getInstance());
this.addSet(Alliances.getInstance());
@ -264,18 +262,6 @@ public class Sets extends HashMap<String, ExpansionSet> {
return symbol.equals("W") || symbol.equals("G") || symbol.equals("U") || symbol.equals("B") || symbol.equals("R");
}
public static Deck generateDeck() {
List<ColoredManaSymbol> allowedColors = new ArrayList<ColoredManaSymbol>();
int numColors = rnd.nextInt(2) + 1;
int cardPoolSize = 60;
if (numColors > 2) {
cardPoolSize += 20;
}
Deck deck = new Deck();
return deck;
}
public static Card findCard(String name) {
for (ExpansionSet set: fINSTANCE.values()) {
Card card = set.findCard(name);