From 27ebff36ec972db07f484142fc308110c1784341 Mon Sep 17 00:00:00 2001 From: Dhruv Manilawala Date: Fri, 21 Jun 2024 15:54:42 +0530 Subject: [PATCH] Remove `Token::is_trivia` method (#11962) Sorry, a leftover from my rebase --- crates/ruff_python_parser/src/token.rs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/crates/ruff_python_parser/src/token.rs b/crates/ruff_python_parser/src/token.rs index ee209b9a9f..cedda221ba 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