aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/facade
diff options
context:
space:
mode:
Diffstat (limited to 'src/crepe/facade')
-rw-r--r--src/crepe/facade/CMakeLists.txt2
-rw-r--r--src/crepe/facade/SignalCatch.cpp20
-rw-r--r--src/crepe/facade/SignalCatch.h23
3 files changed, 0 insertions, 45 deletions
diff --git a/src/crepe/facade/CMakeLists.txt b/src/crepe/facade/CMakeLists.txt
index 4873e8d..243ae46 100644
--- a/src/crepe/facade/CMakeLists.txt
+++ b/src/crepe/facade/CMakeLists.txt
@@ -6,7 +6,6 @@ target_sources(crepe PUBLIC
DB.cpp
FontFacade.cpp
Font.cpp
- SignalCatch.cpp
)
target_sources(crepe PUBLIC FILE_SET HEADERS FILES
@@ -17,6 +16,5 @@ target_sources(crepe PUBLIC FILE_SET HEADERS FILES
DB.h
FontFacade.h
Font.h
- SignalCatch.h
)
diff --git a/src/crepe/facade/SignalCatch.cpp b/src/crepe/facade/SignalCatch.cpp
deleted file mode 100644
index 4988047..0000000
--- a/src/crepe/facade/SignalCatch.cpp
+++ /dev/null
@@ -1,20 +0,0 @@
-#include <stdexcept>
-
-#include "SignalCatch.h"
-
-using namespace crepe;
-using namespace std;
-
-SignalCatch::SignalCatch() {
- segvcatch::init_segv(&SignalCatch::segv);
- segvcatch::init_fpe(&SignalCatch::fpe);
-}
-
-SignalCatch::~SignalCatch() {
- segvcatch::init_segv();
- segvcatch::init_fpe();
-}
-
-void SignalCatch::segv() { throw runtime_error("segmentation fault"); }
-
-void SignalCatch::fpe() { throw domain_error("floating point exception"); }
diff --git a/src/crepe/facade/SignalCatch.h b/src/crepe/facade/SignalCatch.h
deleted file mode 100644
index cf86b56..0000000
--- a/src/crepe/facade/SignalCatch.h
+++ /dev/null
@@ -1,23 +0,0 @@
-#pragma once
-
-#include <segvcatch.h>
-
-namespace crepe {
-
-class SignalCatch {
-public:
- SignalCatch();
- ~SignalCatch();
-
-private:
- static void segv();
- static void fpe();
-
-public:
- SignalCatch(const SignalCatch &) = delete;
- SignalCatch(SignalCatch &&) = delete;
- SignalCatch & operator=(const SignalCatch &) = delete;
- SignalCatch & operator=(SignalCatch &&) = delete;
-};
-
-} // namespace crepe