Skip to content

Commit c75f24d

Browse files
committed
wip
1 parent 6d6fab6 commit c75f24d

File tree

2 files changed

+5
-12
lines changed

2 files changed

+5
-12
lines changed

src/check_nesting.cpp

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,11 @@ namespace Sass {
2222
Statement* CheckNesting::operator()(Block* b)
2323
{
2424
parent_stack.push_back(b);
25-
append_block(b);
25+
26+
for (auto n : *b) {
27+
n->perform(this);
28+
}
29+
2630
parent_stack.pop_back();
2731
return b;
2832
}
@@ -53,14 +57,4 @@ namespace Sass {
5357
dynamic_cast<Directive*>(p) ||
5458
dynamic_cast<Mixin_Call*>(p);
5559
}
56-
57-
void CheckNesting::append_block(Block* b)
58-
{
59-
for (size_t i = 0, L = b->length(); i < L; ++i) {
60-
Statement* ith = (*b)[i]->perform(this);
61-
if (ith) {
62-
(*b)[i] = ith;
63-
}
64-
}
65-
}
6660
}

src/check_nesting.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ namespace Sass {
3030
Statement* fallback(U x) { return fallback_impl(x); }
3131

3232
bool is_valid_prop_parent(AST_Node*);
33-
void append_block(Block*);
3433
};
3534

3635
}

0 commit comments

Comments
 (0)