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:
bors 2024-02-21 14:46:44 +00:00
commit 3e69220e24

View file

@ -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())))
}
}