Skip to content

Commit

Permalink
Remove obsolete parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
mgreter committed Mar 17, 2018
1 parent 10c25da commit 0599b2e
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 8 deletions.
1 change: 0 additions & 1 deletion src/ast_fwd_decl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,6 @@ namespace Sass {
typedef std::vector<Sass_Import_Entry> ImporterStack;

typedef const char* Signature;

// only to switch implementations for testing
#define environment_map std::map

Expand Down
2 changes: 1 addition & 1 deletion src/bind.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

namespace Sass {

void bind(std::string type, std::string name, Parameters_Obj ps, Arguments_Obj as, Context* ctx, Env* env, Eval* eval)
void bind(std::string type, std::string name, Parameters_Obj ps, Arguments_Obj as, Env* env, Eval* eval)
{
std::string callee(type + " " + name);

Expand Down
2 changes: 1 addition & 1 deletion src/bind.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

namespace Sass {

void bind(std::string type, std::string name, Parameters_Obj, Arguments_Obj, Context*, Env*, Eval*);
void bind(std::string type, std::string name, Parameters_Obj, Arguments_Obj, Env*, Eval*);
}

#endif
4 changes: 2 additions & 2 deletions src/eval.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1003,7 +1003,7 @@ namespace Sass {
exp.env_stack.push_back(&fn_env);

if (func || body) {
bind(std::string("Function"), c->name(), params, args, &ctx, &fn_env, this);
bind(std::string("Function"), c->name(), params, args, &fn_env, this);
std::string msg(", in function `" + c->name() + "`");
traces.push_back(Backtrace(c->pstate(), msg));
ctx.callee_stack.push_back({
Expand Down Expand Up @@ -1043,7 +1043,7 @@ namespace Sass {

// populates env with default values for params
std::string ff(c->name());
bind(std::string("Function"), c->name(), params, args, &ctx, &fn_env, this);
bind(std::string("Function"), c->name(), params, args, &fn_env, this);
std::string msg(", in function `" + c->name() + "`");
traces.push_back(Backtrace(c->pstate(), msg));
ctx.callee_stack.push_back({
Expand Down
2 changes: 1 addition & 1 deletion src/expand.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -740,7 +740,7 @@ namespace Sass {
new_env.local_frame()["@content[m]"] = thunk;
}

bind(std::string("Mixin"), c->name(), params, args, &ctx, &new_env, &eval);
bind(std::string("Mixin"), c->name(), params, args, &new_env, &eval);

Block_Obj trace_block = SASS_MEMORY_NEW(Block, c->pstate());
Trace_Obj trace = SASS_MEMORY_NEW(Trace, c->pstate(), c->name(), trace_block);
Expand Down
2 changes: 0 additions & 2 deletions src/fn_utils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ namespace Sass {
// special function for weird hsla percent (10px == 10% == 10 != 0.1)
#define ARGVAL(argname) get_arg_val(argname, env, sig, pstate, traces) // double

typedef const char* Signature;

typedef Expression_Ptr (*Native_Function)(Env&, Env&, Context&, Signature, ParserState, Backtraces, SelectorStack);

Definition_Ptr make_native_function(Signature, Native_Function, Context& ctx);
Expand Down

0 comments on commit 0599b2e

Please sign in to comment.