From d492220856f0fa1360e1827552563dbf65650aec Mon Sep 17 00:00:00 2001 From: Peter Huene Date: Tue, 16 Apr 2024 10:44:44 -0700 Subject: [PATCH] Cleanup from #82. The `NodeInfo` struct should have been removed with the changes in #82 as it is no longer needed. --- crates/wac-graph/src/graph.rs | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/crates/wac-graph/src/graph.rs b/crates/wac-graph/src/graph.rs index f7d0b609..d86b41d6 100644 --- a/crates/wac-graph/src/graph.rs +++ b/crates/wac-graph/src/graph.rs @@ -415,22 +415,6 @@ impl fmt::Debug for Edge { } } -/// Represents information about a node in a composition graph. -pub struct NodeInfo<'a> { - /// The item kind of the node. - pub kind: ItemKind, - /// The optional name of the node. - pub name: Option<&'a str>, - /// The package associated with the node. - pub package: Option, - /// The export name of the node. - /// - /// If the node is not exported, this field will be `None`. - pub export: Option<&'a str>, - /// Whether or not the node is from a type definition. - pub definition: bool, -} - /// Represents a composition graph. /// /// A composition graph is a directed acyclic graph (DAG) that represents a WebAssembly composition.