diff --git a/crates/swc_css_parser/src/parser/macros.rs b/crates/swc_css_parser/src/parser/macros.rs index 5914f0db9725..c8cccfe9837f 100644 --- a/crates/swc_css_parser/src/parser/macros.rs +++ b/crates/swc_css_parser/src/parser/macros.rs @@ -43,28 +43,6 @@ macro_rules! tok_pat { }; } -macro_rules! can_ignore_ws { - ("{") => { - true - }; - ("}") => { - true - }; - ("(") => { - true - }; - (")") => { - true - }; - (":") => { - true - }; - - ($tt:tt) => { - false - }; -} - macro_rules! cur { ($parser:expr) => { match $parser.input.cur() { @@ -182,10 +160,6 @@ macro_rules! eat { macro_rules! expect { ($parser:expr, $tt:tt) => { - if can_ignore_ws!($tt) { - $parser.input.skip_ws() - } - if !eat!($parser, $tt) { let span = $parser.input.cur_span(); return Err(crate::error::Error::new(