Remove redundant stable id generation

This commit is contained in:
Dennis Kobert
2025-09-18 12:51:47 +02:00
parent e176a0b812
commit d276e2a62a

View File

@@ -5,7 +5,7 @@ use std::error::Error;
pub struct Compiler {}
impl Compiler {
pub fn compile<'a>(&'a self, mut network: NodeNetwork, mut ty: Option<&mut TypingContext>) -> impl Iterator<Item = Result<ProtoNetwork, String>> {
pub fn compile(&self, mut network: NodeNetwork, mut ty: Option<&mut TypingContext>) -> impl Iterator<Item = Result<ProtoNetwork, String>> {
let node_ids = network.nodes.keys().copied().collect::<Vec<_>>();
network.populate_dependants();
for id in node_ids {
@@ -18,7 +18,7 @@ impl Compiler {
proto_networks.map(move |mut proto_network| {
proto_network.insert_context_nullification_nodes(ty.as_deref_mut())?;
proto_network.generate_stable_node_ids();
// proto_network.generate_stable_node_ids();
Ok(proto_network)
})
}