Skip to content

Commit

Permalink
Remove Token::is_trivia method (#11962)
Browse files Browse the repository at this point in the history
Sorry, a leftover from my rebase
  • Loading branch information
dhruvmanila authored Jun 21, 2024
1 parent 96da136 commit 27ebff3
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions crates/ruff_python_parser/src/token.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 27ebff3

Please sign in to comment.