summaryrefslogtreecommitdiffstats
path: root/src/jrummikub/control/SaveControl.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/jrummikub/control/SaveControl.java')
-rw-r--r--src/jrummikub/control/SaveControl.java29
1 files changed, 0 insertions, 29 deletions
diff --git a/src/jrummikub/control/SaveControl.java b/src/jrummikub/control/SaveControl.java
index 5ecbb45..f348756 100644
--- a/src/jrummikub/control/SaveControl.java
+++ b/src/jrummikub/control/SaveControl.java
@@ -27,7 +27,6 @@ public class SaveControl {
private IRoundState roundState;
private Event3<GameSettings, GameState, IRoundState> loadEvent = new Event3<GameSettings, GameState, IRoundState>();
private Event loadErrorEvent = new Event();
- private Connection tempConnection;
/**
* Creates a new SaveControl
@@ -42,34 +41,6 @@ public class SaveControl {
save(file);
}
});
-
- view.getLoadEvent().add(new IListener() {
- @Override
- public void handle() {
- view.getQuitWarningPanel().setMode(QuitMode.QUIT_GAME);
- view.showQuitWarningPanel(true);
-
- tempConnection = view.getQuitWarningPanel().getQuitEvent()
- .add(new IListener() {
- @Override
- public void handle() {
- view.showQuitWarningPanel(false);
- view.load();
- tempConnection.remove();
- }
- });
- }
- });
- view.getQuitWarningPanel().getCancelEvent().add(new IListener() {
- @Override
- public void handle() {
- view.showQuitWarningPanel(false);
- if (tempConnection != null) {
- tempConnection.remove();
- tempConnection = null;
- }
- }
- });
view.getLoadFileEvent().add(new IListener1<File>() {
@Override
public void handle(final File file) {