Skip to content

Commit d62a904

Browse files
committed
unused
1 parent c8cb2f9 commit d62a904

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

packages/svelte/src/compiler/phases/2-analyze/css/css-analyze.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,11 @@ function is_global_block_selector(simple_selector) {
3232

3333
/**
3434
* @param {import('../types.js').Context["path"]} path
35-
* @param {AST.CSS.Rule | null} [rule]
3635
* @returns
3736
*/
38-
function is_unscoped_global(path, rule) {
37+
function is_unscoped_global(path) {
3938
// remove every at rule or stylesheet and the current rule in case is passed in from `ComplexSelector`
40-
const parents = path.filter(
41-
(parent) => parent.type !== 'Atrule' && parent.type !== 'StyleSheet' && parent !== rule
42-
);
39+
const parents = path.filter((parent) => parent.type !== 'Atrule' && parent.type !== 'StyleSheet');
4340

4441
let unscoped_global = true;
4542

0 commit comments

Comments
 (0)