Skip to content

Commit

Permalink
Auto merge of #13472 - linyihai:remove-unused-func, r=weihanglo
Browse files Browse the repository at this point in the history
chore: remove the unused function

### What does this PR try to resolve?

Remove the unused function.  The code that uses this function has been removed, so it no longer makes sense to keep it.

### How should we test and review this PR?

### Additional information
  • Loading branch information
bors committed Feb 21, 2024
2 parents 7329054 + f9402ef commit 3e69220
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/cargo/core/resolver/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -229,10 +229,3 @@ impl ResolverContext {
graph
}
}

impl Graph<PackageId, im_rc::HashSet<Dependency>> {
pub fn parents_of(&self, p: PackageId) -> impl Iterator<Item = (PackageId, bool)> + '_ {
self.edges(&p)
.map(|(grand, d)| (*grand, d.iter().any(|x| x.is_public())))
}
}

0 comments on commit 3e69220

Please sign in to comment.