removed some useless casts

This commit is contained in:
Maxmtg
2013-02-27 04:51:45 +00:00
parent dc0706a673
commit 6a7ed9d213

View File

@@ -45,7 +45,6 @@ import forge.deck.DeckBase;
import forge.deck.DeckSection; import forge.deck.DeckSection;
import forge.game.GameType; import forge.game.GameType;
import forge.gui.deckeditor.CDeckEditorUI; import forge.gui.deckeditor.CDeckEditorUI;
import forge.gui.deckeditor.controllers.ACEditorBase;
import forge.gui.deckeditor.controllers.CEditorConstructed; import forge.gui.deckeditor.controllers.CEditorConstructed;
import forge.gui.deckeditor.controllers.CEditorLimited; import forge.gui.deckeditor.controllers.CEditorLimited;
import forge.gui.deckeditor.controllers.CEditorQuest; import forge.gui.deckeditor.controllers.CEditorQuest;
@@ -436,15 +435,13 @@ public class DeckLister extends JPanel implements ILocalRepaint {
cEditor.getDeckController().load(d0.getName()); cEditor.getDeckController().load(d0.getName());
break; break;
case Sealed: case Sealed:
final ACEditorBase<?, T> sEditor = (ACEditorBase<?, T>) final CEditorLimited sEditor = new CEditorLimited(Singletons.getModel().getDecks().getSealed());
new CEditorLimited(Singletons.getModel().getDecks().getSealed());
FControl.SINGLETON_INSTANCE.changeState(FControl.Screens.DECK_EDITOR_LIMITED); FControl.SINGLETON_INSTANCE.changeState(FControl.Screens.DECK_EDITOR_LIMITED);
CDeckEditorUI.SINGLETON_INSTANCE.setCurrentEditorController(sEditor); CDeckEditorUI.SINGLETON_INSTANCE.setCurrentEditorController(sEditor);
sEditor.getDeckController().load(d0.getName()); sEditor.getDeckController().load(d0.getName());
break; break;
case Draft: case Draft:
final ACEditorBase<?, T> dEditor = (ACEditorBase<?, T>) final CEditorLimited dEditor = new CEditorLimited(Singletons.getModel().getDecks().getDraft());
new CEditorLimited(Singletons.getModel().getDecks().getDraft());
FControl.SINGLETON_INSTANCE.changeState(FControl.Screens.DECK_EDITOR_LIMITED); FControl.SINGLETON_INSTANCE.changeState(FControl.Screens.DECK_EDITOR_LIMITED);
CDeckEditorUI.SINGLETON_INSTANCE.setCurrentEditorController(dEditor); CDeckEditorUI.SINGLETON_INSTANCE.setCurrentEditorController(dEditor);
dEditor.getDeckController().load(d0.getName()); dEditor.getDeckController().load(d0.getName());