diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2008-11-20 10:22:31 -0330 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2008-11-20 10:22:31 -0330 |
commit | aa4f3340e17e227a26659a75a8f60d24c2dd5323 (patch) | |
tree | c118d1d651d48f236c911d25f8a3f3b34320783f /cpp/src/slice2html/Gen.cpp | |
parent | Bug 3550 - slice compiler not able to open tmp file on Vista (diff) | |
download | ice-aa4f3340e17e227a26659a75a8f60d24c2dd5323.tar.bz2 ice-aa4f3340e17e227a26659a75a8f60d24c2dd5323.tar.xz ice-aa4f3340e17e227a26659a75a8f60d24c2dd5323.zip |
Refactored CtrlCHandler usage in slice compilers
Diffstat (limited to 'cpp/src/slice2html/Gen.cpp')
-rw-r--r-- | cpp/src/slice2html/Gen.cpp | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/cpp/src/slice2html/Gen.cpp b/cpp/src/slice2html/Gen.cpp index 3be0eecb3e2..8e4b64a51d7 100644 --- a/cpp/src/slice2html/Gen.cpp +++ b/cpp/src/slice2html/Gen.cpp @@ -9,7 +9,6 @@ #include <IceUtil/DisableWarnings.h> #include <IceUtil/Functional.h> -#include <Slice/SignalHandler.h> #include <Gen.h> #include <sys/types.h> @@ -30,20 +29,6 @@ using namespace Slice; using namespace IceUtil; using namespace IceUtilInternal; -// -// Callback for Crtl-C signal handling -// -static GeneratorBase* _genBase = 0; - -static void closeCallback() -{ - if(_genBase != 0) - { - _genBase->closeStream(); - } -} - - namespace Slice { @@ -52,8 +37,6 @@ generate(const UnitPtr& unit, const string& dir, const string& header, const str const string& indexHeader, const string& indexFooter, const string& imageDir, const string& logoURL, const string& searchAction, unsigned indexCount, unsigned warnSummary) { - SignalHandler::setCloseCallback(closeCallback); - unit->mergeModules(); // @@ -103,8 +86,6 @@ generate(const UnitPtr& unit, const string& dir, const string& header, const str GeneratorBase::setSymbols(tocv.symbols()); PageVisitor v(files); unit->visit(&v, false); - - SignalHandler::setCloseCallback(0); } } @@ -214,12 +195,10 @@ Slice::GeneratorBase::setSymbols(const ContainedList& symbols) Slice::GeneratorBase::GeneratorBase(XMLOutput& o, const Files& files) : _out(o), _files(files) { - _genBase = this; } Slice::GeneratorBase::~GeneratorBase() { - _genBase = 0; } // @@ -1262,8 +1241,6 @@ Slice::GeneratorBase::getLogoURL() void Slice::GeneratorBase::openStream(const string& path) { - SignalHandler::addFileForCleanup(path); - _out.open(path.c_str()); if(!_out.isOpen()) { |