Skip to content

Commit

Permalink
Remove unused and obsolete code
Browse files Browse the repository at this point in the history
  • Loading branch information
mgreter committed Dec 28, 2016
1 parent 1b71b9d commit cc3c24e
Showing 1 changed file with 4 additions and 30 deletions.
34 changes: 4 additions & 30 deletions src/ast.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2293,12 +2293,6 @@ namespace Sass {
virtual void set_media_block(Media_Block_Ptr mb) {
media_block(mb);
}
virtual bool has_wrapped_selector() {
return false;
}
virtual bool has_placeholder() {
return false;
}
virtual bool has_parent_ref() {
return false;
}
Expand Down Expand Up @@ -2414,6 +2408,10 @@ namespace Sass {
return name_ == "*";
}

virtual bool has_placeholder() {
return false;
}

virtual ~Simple_Selector() = 0;
virtual Compound_Selector_Ptr unify_with(Compound_Selector_Ptr, Context&);
virtual bool has_parent_ref() { return false; };
Expand Down Expand Up @@ -2697,10 +2695,6 @@ namespace Sass {
if (!selector()) return false;
return selector()->has_real_parent_ref();
}
virtual bool has_wrapped_selector()
{
return true;
}
virtual unsigned long specificity()
{
return selector_ ? selector_->specificity() : 0;
Expand Down Expand Up @@ -2797,15 +2791,6 @@ namespace Sass {
return sum;
}

virtual bool has_wrapped_selector()
{
if (length() == 0) return false;
if (Simple_Selector_Obj ss = elements().front()) {
if (ss->has_wrapped_selector()) return true;
}
return false;
}

virtual bool has_placeholder()
{
if (length() == 0) return false;
Expand Down Expand Up @@ -2939,11 +2924,6 @@ namespace Sass {
if (tail_) tail_->set_media_block(mb);
if (head_) head_->set_media_block(mb);
}
virtual bool has_wrapped_selector() {
if (head_ && head_->has_wrapped_selector()) return true;
if (tail_ && tail_->has_wrapped_selector()) return true;
return false;
}
virtual bool has_placeholder() {
if (head_ && head_->has_placeholder()) return true;
if (tail_ && tail_->has_placeholder()) return true;
Expand Down Expand Up @@ -3061,12 +3041,6 @@ namespace Sass {
cs->set_media_block(mb);
}
}
virtual bool has_wrapped_selector() {
for (Complex_Selector_Obj cs : elements()) {
if (cs->has_wrapped_selector()) return true;
}
return false;
}
virtual bool has_placeholder() {
for (Complex_Selector_Obj cs : elements()) {
if (cs->has_placeholder()) return true;
Expand Down

0 comments on commit cc3c24e

Please sign in to comment.