mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-04-18 14:55:53 -04:00
Remove #terminate method from base model classes
After removing all empty implementations of lifecycle methods (see earlier commit), the #terminate method was no longer called anywhere other than from CachedViewCB's #terminate method, which per its own Javadoc is supposed to call #deactivate. Now it does just that.
This commit is contained in:
parent
0f04bd58bc
commit
c7e98df174
@ -98,7 +98,7 @@ public class CachedViewCB<T extends PresentationModel> extends ViewCB<T> {
|
||||
super.terminate();
|
||||
|
||||
if (presentationModel != null)
|
||||
presentationModel.terminate();
|
||||
presentationModel.deactivate();
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -49,10 +49,4 @@ public class PresentationModel<T extends UIModel> {
|
||||
if (model != null)
|
||||
model.deactivate();
|
||||
}
|
||||
|
||||
public void terminate() {
|
||||
log.trace("Lifecycle: terminate " + this.getClass().getSimpleName());
|
||||
if (model != null)
|
||||
model.terminate();
|
||||
}
|
||||
}
|
||||
|
@ -34,8 +34,4 @@ public class UIModel {
|
||||
public void deactivate() {
|
||||
log.trace("Lifecycle: deactivate " + this.getClass().getSimpleName());
|
||||
}
|
||||
|
||||
public void terminate() {
|
||||
log.trace("Lifecycle: terminate " + this.getClass().getSimpleName());
|
||||
}
|
||||
}
|
||||
|
@ -79,9 +79,6 @@ public class ViewCB<T extends PresentationModel> implements Initializable {
|
||||
*/
|
||||
public void terminate() {
|
||||
log.trace("Lifecycle: terminate " + this.getClass().getSimpleName());
|
||||
|
||||
if (presentationModel != null)
|
||||
presentationModel.terminate();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user