mirror of
https://github.com/rust-lang/cargo
synced 2024-09-13 21:11:44 +00:00
Auto merge of #13472 - linyihai:remove-unused-func, r=weihanglo
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
This commit is contained in:
commit
3e69220e24
|
@ -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())))
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue