Remove all but the last implementation of View#terminate

This commit is contained in:
Chris Beams 2014-11-22 20:58:43 +01:00
parent 22443900a9
commit 97817aa724
No known key found for this signature in database
GPG Key ID: 3D214F8F5BC5ED73
4 changed files with 0 additions and 21 deletions

View File

@ -92,12 +92,4 @@ public abstract class ActivatableView<M extends Activatable> extends View<M> imp
protected void doDeactivate() {
}
/**
* In caching controllers the terminate calls the deactivate method.
*/
@Override
public void terminate() {
model.deactivate();
}
}

View File

@ -71,12 +71,7 @@ public abstract class View<M> implements Initializable {
}
}
/**
* Called automatically when view gets removed. Used for house keeping (removing listeners,
* stopping timers or animations,...).
*/
public void terminate() {
log.trace("Lifecycle: terminate " + this.getClass().getSimpleName());
}
/**

View File

@ -116,13 +116,6 @@ public class AccountView extends ActivatableView {
((TabPane) root).getSelectionModel().selectedItemProperty().removeListener(tabChangeListener);
}
@SuppressWarnings("EmptyMethod")
@Override
public void terminate() {
super.terminate();
}
///////////////////////////////////////////////////////////////////////////////////////////
// Navigation
///////////////////////////////////////////////////////////////////////////////////////////

View File

@ -142,7 +142,6 @@ public class AccountSetupView extends View implements MultiStepNavigation {
@Override
public void terminate() {
super.terminate();
navigation.removeListener(listener);
}