diff --git a/src/cssize.cpp b/src/cssize.cpp index 963d183031..e45c47a472 100644 --- a/src/cssize.cpp +++ b/src/cssize.cpp @@ -13,22 +13,14 @@ namespace Sass { : ctx(ctx), block_stack(std::vector()), p_stack(std::vector()), - s_stack(std::vector()), backtrace(bt) - { - s_stack.push_back(NULL); - } + { } Statement* Cssize::parent() { return p_stack.size() ? p_stack.back() : block_stack.front(); } - Selector_List* Cssize::selector() - { - return s_stack.size() ? s_stack.back() : NULL; - } - Statement* Cssize::operator()(Block* b) { Block* bb = SASS_MEMORY_NEW(ctx.mem, Block, b->pstate(), b->length(), b->is_root()); @@ -145,7 +137,6 @@ namespace Sass { Statement* Cssize::operator()(Ruleset* r) { p_stack.push_back(r); - s_stack.push_back(dynamic_cast(r->selector())); // this can return a string schema // string schema is not a statement! // r->block() is already a string schema @@ -162,7 +153,6 @@ namespace Sass { stmt->block()); rr->is_root(r->is_root()); // rr->tabs(r->block()->tabs()); - s_stack.pop_back(); p_stack.pop_back(); if (!rr->block()) { diff --git a/src/cssize.hpp b/src/cssize.hpp index 87539992b1..c3ed8cf92d 100644 --- a/src/cssize.hpp +++ b/src/cssize.hpp @@ -16,7 +16,6 @@ namespace Sass { Context& ctx; std::vector block_stack; std::vector p_stack; - std::vector s_stack; Backtrace* backtrace; Statement* fallback_impl(AST_Node* n);