Skip to content

Commit 8d91989

Browse files
committed
[TASK] Drop greedy calculation of selector specificity
This constructor parameter is not used, and having the specificity calculation always done lazily is not a problem.
1 parent 7ef82db commit 8d91989

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ Please also have a look at our
3939

4040
### Removed
4141

42+
- Drop greedy calculation of selector specificity (#1021)
4243
- Drop `getLineNo()` from the `Renderable` interface (#1038)
4344
- Remove `OutputFormat::level()` (#874)
4445
- Remove expansion of shorthand properties (#838)

src/Property/Selector.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,14 +88,10 @@ public static function isValid($selector)
8888

8989
/**
9090
* @param string $selector
91-
* @param bool $calculateSpecificity @deprecated since V8.8.0, will be removed in V9.0.0
9291
*/
93-
public function __construct($selector, $calculateSpecificity = false)
92+
public function __construct($selector)
9493
{
9594
$this->setSelector($selector);
96-
if ($calculateSpecificity) {
97-
$this->getSpecificity();
98-
}
9995
}
10096

10197
/**

0 commit comments

Comments
 (0)