Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
mischnic committed Dec 13, 2024
1 parent f38b02c commit 2cd4af9
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions crates/next-api/src/module_graph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ pub enum GraphTraversalAction {
Skip,
}

#[derive(Clone, Debug, Serialize, Deserialize, TraceRawVcs, Eq, PartialEq, Hash, NonLocalValue)]
#[derive(Clone, Debug, Serialize, Deserialize, TraceRawVcs, NonLocalValue)]
pub struct SingleModuleGraphNode {
pub module: ResolvedVc<Box<dyn Module>>,
issues: Vec<ResolvedVc<Box<dyn Issue>>>,
Expand Down Expand Up @@ -118,6 +118,7 @@ struct ModuleSet(pub HashSet<ResolvedVc<Box<dyn Module>>>);
// afterwards build the SingleModuleGraph.
#[derive(Clone, Hash, PartialEq, Eq)]
enum SingleModuleGraphBuilderNode {
/// This edge is represented as a node: source Module -> ChunkableReference -> target Module
ChunkableReference {
chunking_type: ChunkingType,
source: ResolvedVc<Box<dyn Module>>,
Expand All @@ -130,6 +131,7 @@ enum SingleModuleGraphBuilderNode {
layer: Option<ReadRef<RcStr>>,
ident: ReadRef<RcStr>,
},
/// Issues to be added to the parent Module node
#[allow(dead_code)]
Issues(Vec<ResolvedVc<Box<dyn Issue>>>),
}
Expand Down Expand Up @@ -553,9 +555,6 @@ impl SingleModuleGraph {
) -> Result<Vc<Self>> {
SingleModuleGraph::new_inner(Some(root), &entries, &*visited_modules.await?).await
}

// #[turbo_tasks::function]
// async fn new_
}

/// Implements layout segment optimization to compute a graph "chain" for each layout segment
Expand Down

0 comments on commit 2cd4af9

Please sign in to comment.