From 4484d64f946b7800a97f0625a9a7846f33cc46e4 Mon Sep 17 00:00:00 2001 From: Alexander Akait <4567934+alexander-akait@users.noreply.github.com> Date: Mon, 8 Nov 2021 07:29:52 +0300 Subject: [PATCH] refactor(css/ast): Remove `UniversalSelector` (#2673) --- css/ast/src/selector.rs | 6 ------ css/parser/tests/fixture.rs | 1 - css/visit/src/lib.rs | 4 ---- 3 files changed, 11 deletions(-) diff --git a/css/ast/src/selector.rs b/css/ast/src/selector.rs index 0623fbce02c3..b2e786da1331 100644 --- a/css/ast/src/selector.rs +++ b/css/ast/src/selector.rs @@ -138,12 +138,6 @@ pub struct PseudoSelector { pub args: Tokens, } -/// `*` -#[ast_node] -pub struct UniversalSelector { - pub span: Span, -} - #[ast_node("IdSelector")] pub struct IdSelector { pub span: Span, diff --git a/css/parser/tests/fixture.rs b/css/parser/tests/fixture.rs index 72aad6d06bb5..47a8358eaf1f 100644 --- a/css/parser/tests/fixture.rs +++ b/css/parser/tests/fixture.rs @@ -348,7 +348,6 @@ impl Visit for SpanVisualizer<'_> { mtd!(Tokens, visit_tokens); mtd!(Unit, visit_unit); mtd!(UnitValue, visit_unit_value); - mtd!(UniversalSelector, visit_universal_selector); mtd!(UrlValue, visit_url_value); mtd!(Value, visit_value); diff --git a/css/visit/src/lib.rs b/css/visit/src/lib.rs index 1ad3313e1c41..71ba824e0229 100644 --- a/css/visit/src/lib.rs +++ b/css/visit/src/lib.rs @@ -242,10 +242,6 @@ define!({ pub args: Tokens, } - pub struct UniversalSelector { - pub span: Span, - } - pub struct IdSelector { pub span: Span, pub text: Text,