diff --git a/crates/ruff_python_parser/src/token.rs b/crates/ruff_python_parser/src/token.rs index ee209b9a9f85d..cedda221ba230 100644 --- a/crates/ruff_python_parser/src/token.rs +++ b/crates/ruff_python_parser/src/token.rs @@ -43,12 +43,6 @@ impl Token { (self.kind, self.range) } - /// Returns `true` if this is a trivia token. - #[inline] - pub const fn is_trivia(self) -> bool { - matches!(self.kind, TokenKind::Comment | TokenKind::NonLogicalNewline) - } - /// Returns `true` if the current token is a triple-quoted string of any kind. /// /// # Panics