diff --git a/src/util/CMakeLists.txt b/src/util/CMakeLists.txt index ffeb8257b4..603ab62589 100644 --- a/src/util/CMakeLists.txt +++ b/src/util/CMakeLists.txt @@ -1,3 +1,2 @@ add_library(util trace.cpp debug.cpp name.cpp exception.cpp - verbosity.cpp interrupt.cpp hash.cpp escaped.cpp bit_tricks.cpp - safe_arith.cpp) + interrupt.cpp hash.cpp escaped.cpp bit_tricks.cpp safe_arith.cpp) diff --git a/src/util/verbosity.cpp b/src/util/verbosity.cpp deleted file mode 100644 index f63f1d8f3b..0000000000 --- a/src/util/verbosity.cpp +++ /dev/null @@ -1,31 +0,0 @@ -/* -Copyright (c) 2013 Microsoft Corporation. All rights reserved. -Released under Apache 2.0 license as described in the file LICENSE. - -Author: Leonardo de Moura -*/ -#include "verbosity.h" - -namespace lean { - -unsigned g_verbosity_level = 0; - -void set_verbosity_level(unsigned lvl) { - g_verbosity_level = lvl; -} - -unsigned get_verbosity_level() { - return g_verbosity_level; -} - -static std::ostream* g_verbose_stream = &std::cerr; - -void set_verbose_stream(std::ostream& str) { - g_verbose_stream = &str; -} - -std::ostream& verbose_stream() { - return *g_verbose_stream; -} - -} diff --git a/src/util/verbosity.h b/src/util/verbosity.h deleted file mode 100644 index 298611a80e..0000000000 --- a/src/util/verbosity.h +++ /dev/null @@ -1,16 +0,0 @@ -/* -Copyright (c) 2013 Microsoft Corporation. All rights reserved. -Released under Apache 2.0 license as described in the file LICENSE. - -Author: Leonardo de Moura -*/ -#pragma once -#include - -namespace lean { -void set_verbosity_level(unsigned lvl); -unsigned get_verbosity_level(); -std::ostream& verbose_stream(); -void set_verbose_stream(std::ostream& s); -#define lean_verbose(LVL, CODE) { if (get_verbosity_level() >= LVL) { CODE } } -}