summaryrefslogtreecommitdiff
path: root/src/utils/checkutils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/checkutils.cpp')
-rw-r--r--src/utils/checkutils.cpp50
1 files changed, 0 insertions, 50 deletions
diff --git a/src/utils/checkutils.cpp b/src/utils/checkutils.cpp
index 3161c8f46..5efda43f5 100644
--- a/src/utils/checkutils.cpp
+++ b/src/utils/checkutils.cpp
@@ -30,56 +30,6 @@
#include "debug.h"
-bool reportFalseReal(const bool val,
- const char *const text,
- const char *const file,
- const unsigned line,
- const char *const func)
-{
- if (!val)
- reportStack(file, line, func, "Detected false value", text);
- return val;
-}
-
-bool reportTrueReal(const bool val,
- const char *const text,
- const char *const file,
- const unsigned line,
- const char *const func)
-{
- if (val)
- reportStack(file, line, func, "Detected true value", text);
- return val;
-}
-
-bool failFalseReal(const bool val,
- const char *const text,
- const char *const file,
- const unsigned line,
- const char *const func)
-{
- if (!val)
- {
- reportStack(file, line, func, "Detected false value", text);
- throw new std::exception;
- }
- return val;
-}
-
-bool failTrueReal(const bool val,
- const char *const text,
- const char *const file,
- const unsigned line,
- const char *const func)
-{
- if (val)
- {
- reportStack(file, line, func, "Detected true value", text);
- throw new std::exception;
- }
- return val;
-}
-
void reportStack(const char *const file,
const unsigned int line,
const char *const func,