chore(kernel/expr): cleanup

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
Leonardo de Moura 2014-06-04 14:51:36 -07:00
parent 3354832c21
commit bab430af43

View file

@ -272,11 +272,9 @@ static expr_cache LEAN_THREAD_LOCAL g_expr_cache(LEAN_INITIAL_EXPR_CACHE_CAPACIT
static bool LEAN_THREAD_LOCAL g_expr_cache_enabled = true;
inline expr cache(expr const & e) {
if (g_expr_cache_enabled) {
if (auto r = g_expr_cache.insert(e)) {
// std::cout << e << "\n===>\n" << *r << "\n";
if (auto r = g_expr_cache.insert(e))
return *r;
}
}
return e;
}
bool enable_expr_caching(bool f) {