Skip to content

Commit

Permalink
chore: remove the unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
linyihai committed Feb 20, 2024
1 parent 194a60b commit f9402ef
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 f9402ef

Please sign in to comment.