mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-10-01 11:48:12 +08:00
Remove redundant stable id generation
This commit is contained in:
@@ -5,7 +5,7 @@ use std::error::Error;
|
|||||||
pub struct Compiler {}
|
pub struct Compiler {}
|
||||||
|
|
||||||
impl 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<_>>();
|
let node_ids = network.nodes.keys().copied().collect::<Vec<_>>();
|
||||||
network.populate_dependants();
|
network.populate_dependants();
|
||||||
for id in node_ids {
|
for id in node_ids {
|
||||||
@@ -18,7 +18,7 @@ impl Compiler {
|
|||||||
|
|
||||||
proto_networks.map(move |mut proto_network| {
|
proto_networks.map(move |mut proto_network| {
|
||||||
proto_network.insert_context_nullification_nodes(ty.as_deref_mut())?;
|
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)
|
Ok(proto_network)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user