summaryrefslogtreecommitdiff
path: root/cpp/src/slice2docbook/Gen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/slice2docbook/Gen.cpp')
-rw-r--r--cpp/src/slice2docbook/Gen.cpp18
1 files changed, 0 insertions, 18 deletions
diff --git a/cpp/src/slice2docbook/Gen.cpp b/cpp/src/slice2docbook/Gen.cpp
index 3521184c01c..7cccfbd241f 100644
--- a/cpp/src/slice2docbook/Gen.cpp
+++ b/cpp/src/slice2docbook/Gen.cpp
@@ -9,7 +9,6 @@
#include <IceUtil/DisableWarnings.h>
#include <IceUtil/Functional.h>
-#include <Slice/SignalHandler.h>
#include <Gen.h>
#include <cstring>
@@ -22,28 +21,12 @@ using namespace Slice;
using namespace IceUtil;
using namespace IceUtilInternal;
-//
-// Callback for Crtl-C signal handling
-//
-static Gen* _gen = 0;
-
-static void closeCallback()
-{
- if(_gen != 0)
- {
- _gen->closeOutput();
- }
-}
-
Slice::Gen::Gen(const string& name, const string& file, bool standAlone, bool chapter,
bool noIndex, bool sortFields) :
_standAlone(standAlone),
_noIndex(noIndex),
_sortFields(sortFields)
{
- _gen = this;
- SignalHandler::setCallback(closeCallback);
-
if(chapter)
{
_chapter = "chapter";
@@ -63,7 +46,6 @@ Slice::Gen::Gen(const string& name, const string& file, bool standAlone, bool ch
Slice::Gen::~Gen()
{
- SignalHandler::setCallback(0);
}
bool