Skip to content

Remove some unused pub functions#11576

Merged
charliermarsh merged 2 commits intomainfrom
charlie/unused
May 28, 2024
Merged

Remove some unused pub functions#11576
charliermarsh merged 2 commits intomainfrom
charlie/unused

Conversation

@charliermarsh
Copy link
Copy Markdown
Member

Summary

I left anything in red-knot, any with_ methods, etc.

@charliermarsh charliermarsh added the internal An internal refactor or improvement label May 28, 2024
@github-actions
Copy link
Copy Markdown
Contributor

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

Formatter (stable)

✅ ecosystem check detected no format changes.

Formatter (preview)

✅ ecosystem check detected no format changes.

/// Then, the range `4..10` returns an iterator which yields `Name`, `Lpar`, `Rpar`, and
/// `Colon` token. But, if the given position doesn't match any of the tokens, an empty
/// iterator is returned.
pub fn kinds_within_range<T: Ranged>(&self, ranged: T) -> TokenKindIter {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's possible @dhruvmanila has plans for this one — he added it two weeks ago in 025768d

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I'm using this in the new parser PRs. It's fine to remove it here as it has changed a bit, so I'll resolve it during the rebase.

@charliermarsh charliermarsh merged commit 16acd49 into main May 28, 2024
@charliermarsh charliermarsh deleted the charlie/unused branch May 28, 2024 13:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal An internal refactor or improvement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants