diff --git a/src/graph.rs b/src/graph.rs index 6ea70d8..e49a1e7 100644 --- a/src/graph.rs +++ b/src/graph.rs @@ -96,15 +96,3 @@ pub struct DependencyGraphNodeWithTarget { /// A graph of `DownloadedDependencyGraphNode`s pub type DependencyGraphWithTarget = Graph; - -/// A trait for converting a graph to a different type of graph -pub trait ConvertableGraph { - /// Converts the graph to a different type of graph - fn convert(self) -> Graph; -} - -impl ConvertableGraph for DependencyGraphWithTarget { - fn convert(self) -> Graph { - self.into_iter().map(|(id, node)| (id, node.node)).collect() - } -}