mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-02 14:51:25 +00:00
[ty] Remove unused code (#19949)
This commit is contained in:
parent
b892e4548e
commit
ec3163781c
4 changed files with 83 additions and 141 deletions
|
@ -235,7 +235,8 @@ impl HasNavigationTargets for Type<'_> {
|
|||
fn navigation_targets(&self, db: &dyn Db) -> NavigationTargets {
|
||||
match self {
|
||||
Type::Union(union) => union
|
||||
.iter(db)
|
||||
.elements(db)
|
||||
.iter()
|
||||
.flat_map(|target| target.navigation_targets(db))
|
||||
.collect(),
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue