Remove redundant specificity getter

This commit is contained in:
Panayot Cankov
2016-09-17 14:54:24 +03:00
committed by GitHub
parent 4aee2c05eb
commit 4a650f9b94

View File

@ -186,7 +186,6 @@ export class AttributeSelector extends SimpleSelector {
return; return;
} }
} }
public get specificity(): number { return Specificity.Attribute; }
public get rarity(): number { return Specificity.Attribute; } public get rarity(): number { return Specificity.Attribute; }
public toString(): string { return `[${this.attribute}${wrap(this.test)}${(this.test && this.value) || ''}]${wrap(this.combinator)}`; } public toString(): string { return `[${this.attribute}${wrap(this.test)}${(this.test && this.value) || ''}]${wrap(this.combinator)}`; }
public match(node: Node): boolean { return false; } public match(node: Node): boolean { return false; }