class library: deprecate UI.registerForShutdown
UI.registerForShutdown has the same semantics as ShutDown.add. we only need one functionality like this, so this patch deprecates it. Signed-off-by: Tim Blechmann <tim@klingt.org>
This commit is contained in:
parent
3e5cf00140
commit
08cbc64f3a
1 changed files with 2 additions and 2 deletions
|
@ -250,12 +250,12 @@ Emacs {
|
||||||
thisProcess.platform.declareFeature( \emacs );
|
thisProcess.platform.declareFeature( \emacs );
|
||||||
outStream = CollStream.on(String.new);
|
outStream = CollStream.on(String.new);
|
||||||
outFile = File(outFileName, "w");
|
outFile = File(outFileName, "w");
|
||||||
UI.registerForShutdown({
|
ShutDown.add {
|
||||||
if (outFile.notNil) {
|
if (outFile.notNil) {
|
||||||
outFile.close;
|
outFile.close;
|
||||||
outFile = nil
|
outFile = nil
|
||||||
};
|
};
|
||||||
});
|
};
|
||||||
// initialize servers
|
// initialize servers
|
||||||
newServer = { | server update |
|
newServer = { | server update |
|
||||||
SimpleController(server)
|
SimpleController(server)
|
||||||
|
|
Loading…
Reference in a new issue