Skip to content

Commit

Permalink
Remove debugger from fn_miscs
Browse files Browse the repository at this point in the history
Also adds missing expression type
  • Loading branch information
mgreter committed Nov 28, 2018
1 parent 2cabd11 commit 7634b1c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions src/debugger.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<Has_Block>(node)) {
Expand Down
2 changes: 0 additions & 2 deletions src/fn_miscs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
#include "expand.hpp"
#include "fn_utils.hpp"
#include "fn_miscs.hpp"
#include "debugger.hpp"

namespace Sass {

Expand Down Expand Up @@ -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<Value>(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();
Expand Down

0 comments on commit 7634b1c

Please sign in to comment.