Skip to content

Commit 0599b2e

Browse files
committed
Remove obsolete parameters
1 parent 10c25da commit 0599b2e

File tree

6 files changed

+5
-8
lines changed

6 files changed

+5
-8
lines changed

src/ast_fwd_decl.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,6 @@ namespace Sass {
426426
typedef std::vector<Sass_Import_Entry> ImporterStack;
427427

428428
typedef const char* Signature;
429-
430429
// only to switch implementations for testing
431430
#define environment_map std::map
432431

src/bind.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
namespace Sass {
1212

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

src/bind.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
namespace Sass {
99

10-
void bind(std::string type, std::string name, Parameters_Obj, Arguments_Obj, Context*, Env*, Eval*);
10+
void bind(std::string type, std::string name, Parameters_Obj, Arguments_Obj, Env*, Eval*);
1111
}
1212

1313
#endif

src/eval.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1003,7 +1003,7 @@ namespace Sass {
10031003
exp.env_stack.push_back(&fn_env);
10041004

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

10441044
// populates env with default values for params
10451045
std::string ff(c->name());
1046-
bind(std::string("Function"), c->name(), params, args, &ctx, &fn_env, this);
1046+
bind(std::string("Function"), c->name(), params, args, &fn_env, this);
10471047
std::string msg(", in function `" + c->name() + "`");
10481048
traces.push_back(Backtrace(c->pstate(), msg));
10491049
ctx.callee_stack.push_back({

src/expand.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -740,7 +740,7 @@ namespace Sass {
740740
new_env.local_frame()["@content[m]"] = thunk;
741741
}
742742

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

745745
Block_Obj trace_block = SASS_MEMORY_NEW(Block, c->pstate());
746746
Trace_Obj trace = SASS_MEMORY_NEW(Trace, c->pstate(), c->name(), trace_block);

src/fn_utils.hpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ namespace Sass {
1616
// special function for weird hsla percent (10px == 10% == 10 != 0.1)
1717
#define ARGVAL(argname) get_arg_val(argname, env, sig, pstate, traces) // double
1818

19-
typedef const char* Signature;
20-
2119
typedef Expression_Ptr (*Native_Function)(Env&, Env&, Context&, Signature, ParserState, Backtraces, SelectorStack);
2220

2321
Definition_Ptr make_native_function(Signature, Native_Function, Context& ctx);

0 commit comments

Comments
 (0)