Delete obsolete function continue_on_violation

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
Leonardo de Moura 2013-08-15 10:13:48 -07:00
parent d6d221b992
commit e9106f7512
3 changed files with 1 additions and 14 deletions

View file

@ -55,7 +55,6 @@ static void tst2() {
}
int main() {
continue_on_violation(true);
tst1();
tst2();
return has_violations() ? 1 : 0;

View file

@ -18,9 +18,7 @@ Author: Leonardo de Moura
#endif
namespace lean {
static volatile bool g_continue_on_violation = false;
static volatile bool g_has_violations = false;
static volatile bool g_has_violations = false;
static volatile bool g_enable_assertions = true;
static std::unique_ptr<std::set<std::string>> g_enabled_debug_tags;
@ -28,10 +26,6 @@ bool has_violations() {
return g_has_violations;
}
void continue_on_violation(bool f) {
g_continue_on_violation = f;
}
void enable_assertions(bool f) {
g_enable_assertions = f;
}
@ -65,8 +59,6 @@ bool is_debug_enabled(const char * tag) {
void invoke_debugger() {
g_has_violations = true;
if (g_continue_on_violation)
return;
int * x = 0;
for (;;) {
#ifdef _WINDOWS

View file

@ -33,14 +33,10 @@ Author: Leonardo de Moura
//! Lean namespace
namespace lean {
void notify_assertion_violation(char const * file_name, int line, char const * condition);
void enable_debug(char const * tag);
void disable_debug(char const * tag);
bool is_debug_enabled(char const * tag);
void invoke_debugger();
// support for testing
void continue_on_violation(bool flag);
bool has_violations();
}