Skip to content

Commit

Permalink
Remove obsolete function constructor arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
mgreter committed Mar 17, 2018
1 parent 090bab3 commit 8f0bdc7
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 14 deletions.
4 changes: 1 addition & 3 deletions src/ast.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -977,9 +977,7 @@ namespace Sass {
Signature sig,
std::string n,
Parameters_Obj params,
Sass_Function_Entry c_func,
bool whatever,
bool whatever2)
Sass_Function_Entry c_func)
: Has_Block(pstate, 0),
name_(n),
parameters_(params),
Expand Down
12 changes: 6 additions & 6 deletions src/expand.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@ namespace Sass {
block_stack(BlockStack()),
call_stack(CallStack()),
selector_stack(SelectorStack()),
media_block_stack(MediaStack())
media_stack(MediaStack())
{
env_stack.push_back(0);
env_stack.push_back(env);
block_stack.push_back(0);
call_stack.push_back(0);
if (stack == NULL) { selector_stack.push_back(0); }
else { selector_stack.insert(selector_stack.end(), stack->begin(), stack->end()); }
media_block_stack.push_back(0);
media_stack.push_back(0);
}

Env* Expand::environment()
Expand Down Expand Up @@ -139,7 +139,7 @@ namespace Sass {
if (block_stack.back()->is_root()) {
env_stack.push_back(&env);
}
sel->set_media_block(media_block_stack.back());
sel->set_media_block(media_stack.back());
Block_Obj blk = 0;
if (r->block()) blk = operator()(r->block());
Ruleset_Ptr rr = SASS_MEMORY_NEW(Ruleset,
Expand Down Expand Up @@ -183,13 +183,13 @@ namespace Sass {
Parser p(Parser::from_c_str(str, ctx, traces, mq->pstate()));
mq = p.parse_media_queries(); // re-assign now
cpy->media_queries(mq);
media_block_stack.push_back(cpy);
media_stack.push_back(cpy);
Block_Obj blk = operator()(m->block());
Media_Block_Ptr mm = SASS_MEMORY_NEW(Media_Block,
m->pstate(),
mq,
blk);
media_block_stack.pop_back();
media_stack.pop_back();
mm->tabs(m->tabs());
return mm;
}
Expand Down Expand Up @@ -658,7 +658,7 @@ namespace Sass {
}
for (Complex_Selector_Obj cs : sl->elements()) {
if (!cs.isNull() && !cs->head().isNull()) {
cs->head()->media_block(media_block_stack.back());
cs->head()->media_block(media_stack.back());
}
}
selector_stack.push_back(0);
Expand Down
6 changes: 3 additions & 3 deletions src/expand.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ namespace Sass {

// it's easier to work with vectors
std::vector<Env*> env_stack;
BlockStack block_stack;
CallStack call_stack;
BlockStack block_stack;
CallStack call_stack;
SelectorStack selector_stack;
MediaStack media_block_stack;
MediaStack media_stack;

Boolean_Obj bool_true;

Expand Down
3 changes: 1 addition & 2 deletions src/fn_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@ namespace Sass {
sig,
name,
params,
c_func,
false, true);
c_func);
}

namespace Functions {
Expand Down

0 comments on commit 8f0bdc7

Please sign in to comment.