Skip to content

Commit f8dcc19

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 571b91b commit f8dcc19

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
@@ -38,6 +38,7 @@ Please also have a look at our
3838

3939
### Removed
4040

41+
- Drop greedy calculation of selector specificity (#1021)
4142
- Remove `OutputFormat::level()` (#874)
4243
- Remove expansion of shorthand properties (#838)
4344
- Remove `Parser::setCharset/getCharset` (#808)

src/Property/Selector.php

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

8787
/**
8888
* @param string $selector
89-
* @param bool $calculateSpecificity @deprecated since V8.8.0, will be removed in V9.0.0
9089
*/
91-
public function __construct($selector, $calculateSpecificity = false)
90+
public function __construct($selector)
9291
{
9392
$this->setSelector($selector);
94-
if ($calculateSpecificity) {
95-
$this->getSpecificity();
96-
}
9793
}
9894

9995
/**

0 commit comments

Comments
 (0)