@@ -2292,9 +2292,7 @@ namespace Sass {
2292
2292
{ concrete_type (SELECTOR); }
2293
2293
virtual ~Selector () = 0 ;
2294
2294
virtual size_t hash () = 0;
2295
- virtual unsigned long specificity () const {
2296
- return 0 ;
2297
- }
2295
+ virtual unsigned long specificity () const = 0;
2298
2296
virtual void set_media_block (Media_Block_Ptr mb) {
2299
2297
media_block (mb);
2300
2298
}
@@ -2331,6 +2329,9 @@ namespace Sass {
2331
2329
{ }
2332
2330
virtual bool has_parent_ref ();
2333
2331
virtual bool has_real_parent_ref ();
2332
+ // selector schema is not yet a final selector, so we do not
2333
+ // have a specificity for it yet. We need to
2334
+ virtual unsigned long specificity () const { return 0 ; }
2334
2335
virtual size_t hash () {
2335
2336
if (hash_ == 0 ) {
2336
2337
hash_combine (hash_, contents_->hash ());
@@ -2368,10 +2369,6 @@ namespace Sass {
2368
2369
name_(ptr->name_),
2369
2370
has_ns_(ptr->has_ns_)
2370
2371
{ simple_type (SIMPLE); }
2371
- virtual bool unique () const
2372
- {
2373
- return false ;
2374
- }
2375
2372
virtual std::string ns_name () const
2376
2373
{
2377
2374
std::string name (" " );
@@ -2527,10 +2524,6 @@ namespace Sass {
2527
2524
Class_Selector (const Class_Selector* ptr)
2528
2525
: Simple_Selector(ptr)
2529
2526
{ }
2530
- virtual bool unique () const
2531
- {
2532
- return false ;
2533
- }
2534
2527
virtual unsigned long specificity () const
2535
2528
{
2536
2529
return Constants::Specificity_Class;
@@ -2551,10 +2544,6 @@ namespace Sass {
2551
2544
Id_Selector (const Id_Selector* ptr)
2552
2545
: Simple_Selector(ptr)
2553
2546
{ }
2554
- virtual bool unique () const
2555
- {
2556
- return true ;
2557
- }
2558
2547
virtual unsigned long specificity () const
2559
2548
{
2560
2549
return Constants::Specificity_ID;
0 commit comments