From 08cbc64f3a02854b4e2877a499869b624f35a1cb Mon Sep 17 00:00:00 2001 From: Tim Blechmann Date: Wed, 7 Dec 2011 00:27:34 +0100 Subject: [PATCH] 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 --- sc/Emacs.sc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sc/Emacs.sc b/sc/Emacs.sc index 3a08bda..f0e3780 100644 --- a/sc/Emacs.sc +++ b/sc/Emacs.sc @@ -250,12 +250,12 @@ Emacs { thisProcess.platform.declareFeature( \emacs ); outStream = CollStream.on(String.new); outFile = File(outFileName, "w"); - UI.registerForShutdown({ + ShutDown.add { if (outFile.notNil) { outFile.close; outFile = nil }; - }); + }; // initialize servers newServer = { | server update | SimpleController(server)