summaryrefslogtreecommitdiff
path: root/cpp/src/slice2html/Gen.cpp
diff options
context:
space:
mode:
authorDwayne Boone <dwayne@zeroc.com>2008-11-18 13:39:14 -0330
committerDwayne Boone <dwayne@zeroc.com>2008-11-18 13:39:14 -0330
commitac8bf31698d259127646a4e114deca1e7d5e334c (patch)
treef694a8fc9e17bbb0044082510e5d0dd5622cbedc /cpp/src/slice2html/Gen.cpp
parentRemoved debug statements (diff)
downloadice-ac8bf31698d259127646a4e114deca1e7d5e334c.tar.bz2
ice-ac8bf31698d259127646a4e114deca1e7d5e334c.tar.xz
ice-ac8bf31698d259127646a4e114deca1e7d5e334c.zip
Bug 3541 - Slice signal handling unsafe
Diffstat (limited to 'cpp/src/slice2html/Gen.cpp')
-rw-r--r--cpp/src/slice2html/Gen.cpp18
1 files changed, 0 insertions, 18 deletions
diff --git a/cpp/src/slice2html/Gen.cpp b/cpp/src/slice2html/Gen.cpp
index c2a6ff52bbe..91a114601de 100644
--- a/cpp/src/slice2html/Gen.cpp
+++ b/cpp/src/slice2html/Gen.cpp
@@ -30,20 +30,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 +38,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::setCallback(closeCallback);
-
unit->mergeModules();
//
@@ -212,12 +196,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;
}
//