From 7634b1cd17af761672c883cef2bbc39abdbc2aeb Mon Sep 17 00:00:00 2001 From: Marcel Greter Date: Mon, 19 Mar 2018 03:12:46 +0100 Subject: [PATCH] Remove debugger from fn_miscs Also adds missing expression type --- src/debugger.hpp | 1 + src/fn_miscs.cpp | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/debugger.hpp b/src/debugger.hpp index 16c625609..d1af42639 100644 --- a/src/debugger.hpp +++ b/src/debugger.hpp @@ -697,6 +697,7 @@ inline void debug_ast(AST_Node_Ptr node, std::string ind, Env* env) case Expression::Concrete_Type::NUM_TYPES: std::cerr << " [NUM_TYPES]"; break; case Expression::Concrete_Type::VARIABLE: std::cerr << " [VARIABLE]"; break; case Expression::Concrete_Type::FUNCTION_VAL: std::cerr << " [FUNCTION_VAL]"; break; + case Expression::Type::PARENT: std::cerr << " [PARENT]"; break; } std::cerr << std::endl; } else if (Cast(node)) { diff --git a/src/fn_miscs.cpp b/src/fn_miscs.cpp index 938e3f153..4ffee2b3a 100644 --- a/src/fn_miscs.cpp +++ b/src/fn_miscs.cpp @@ -2,7 +2,6 @@ #include "expand.hpp" #include "fn_utils.hpp" #include "fn_miscs.hpp" -#include "debugger.hpp" namespace Sass { @@ -169,7 +168,6 @@ namespace Sass { bool is_true = !cond->is_false(); Expression_Obj res = ARG(is_true ? "$if-true" : "$if-false", Expression); Value_Obj qwe = Cast(res->perform(&expand.eval)); - // if (qwe == 0) debug_ast(res); // res = res->perform(&expand.eval.val_eval); qwe->set_delayed(false); // clone? return qwe.detach();