From 4a650f9b9431e6c5bca809647e71023530b2594f Mon Sep 17 00:00:00 2001 From: Panayot Cankov Date: Sat, 17 Sep 2016 14:54:24 +0300 Subject: [PATCH 1/2] Remove redundant specificity getter --- tns-core-modules/ui/styling/css-selector.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/tns-core-modules/ui/styling/css-selector.ts b/tns-core-modules/ui/styling/css-selector.ts index 7aad884e0..945f441aa 100644 --- a/tns-core-modules/ui/styling/css-selector.ts +++ b/tns-core-modules/ui/styling/css-selector.ts @@ -186,7 +186,6 @@ export class AttributeSelector extends SimpleSelector { return; } } - public get specificity(): 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 match(node: Node): boolean { return false; } From e3e0faebdda24124cf73cd50c8df028939863e90 Mon Sep 17 00:00:00 2001 From: Panayot Cankov Date: Sat, 17 Sep 2016 15:00:26 +0300 Subject: [PATCH 2/2] Remove the rarity getter too --- tns-core-modules/ui/styling/css-selector.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/tns-core-modules/ui/styling/css-selector.ts b/tns-core-modules/ui/styling/css-selector.ts index 945f441aa..31f7c2cad 100644 --- a/tns-core-modules/ui/styling/css-selector.ts +++ b/tns-core-modules/ui/styling/css-selector.ts @@ -186,7 +186,6 @@ export class AttributeSelector extends SimpleSelector { return; } } - public get rarity(): number { return Specificity.Attribute; } public toString(): string { return `[${this.attribute}${wrap(this.test)}${(this.test && this.value) || ''}]${wrap(this.combinator)}`; } public match(node: Node): boolean { return false; } public mayMatch(node: Node): boolean { return true; }