Skip to content

Commit

Permalink
Remove obsolete code
Browse files Browse the repository at this point in the history
  • Loading branch information
mgreter committed Apr 30, 2016
1 parent e74268c commit e6322a1
Showing 1 changed file with 5 additions and 14 deletions.
19 changes: 5 additions & 14 deletions src/eval.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#include "bind.hpp"
#include "util.hpp"
#include "inspect.hpp"
#include "debugger.hpp"
#include "environment.hpp"
#include "position.hpp"
#include "sass/values.h"
Expand Down Expand Up @@ -773,18 +774,6 @@ namespace Sass {
std::string full_name(name + "[f]");
Arguments* args = SASS_MEMORY_NEW(ctx.mem, Arguments, *c->arguments());

// handle call here if valid arg
// otherwise we eval arguments to early
if (name == "call" && args->length() > 0) {
Expression* redirect = args->at(0)->perform(this);
args->erase(args->begin());
Function_Call* lit = SASS_MEMORY_NEW(ctx.mem, Function_Call,
c->pstate(),
unquote(redirect->to_string()),
args);
return operator()(lit);
}

Env* env = environment();
if (!env->has(full_name)) {
if (!env->has("*[f]")) {
Expand All @@ -807,11 +796,13 @@ namespace Sass {
}
}

args->set_delayed(false); // verified
// further delay for calls
if (full_name != "call[f]") {
args->set_delayed(false); // verified
}
if (full_name != "if[f]") {
args = static_cast<Arguments*>(args->perform(this));
}
// debug_ast(args);
Definition* def = static_cast<Definition*>((*env)[full_name]);

if (def->is_overload_stub()) {
Expand Down

0 comments on commit e6322a1

Please sign in to comment.