diff --git a/src/cargo/core/resolver/context.rs b/src/cargo/core/resolver/context.rs index 12660b3ca71..4bc4758feef 100644 --- a/src/cargo/core/resolver/context.rs +++ b/src/cargo/core/resolver/context.rs @@ -229,10 +229,3 @@ impl ResolverContext { graph } } - -impl Graph> { - pub fn parents_of(&self, p: PackageId) -> impl Iterator + '_ { - self.edges(&p) - .map(|(grand, d)| (*grand, d.iter().any(|x| x.is_public()))) - } -}