diff --git a/editor/src/node_graph_executor.rs b/editor/src/node_graph_executor.rs index b41db554ac..480b328ba8 100644 --- a/editor/src/node_graph_executor.rs +++ b/editor/src/node_graph_executor.rs @@ -985,20 +985,6 @@ mod test { element } - /// Grab all of the values of the input every time it occurs in the graph. - pub fn grab_all_input<'a, Input: NodeInputDecleration + 'a>(&'a self, runtime: &'a NodeRuntime) -> impl Iterator + 'a - where - Input::Result: Send + Sync + Clone + 'static, - { - self.protonodes_by_name - .get(&Input::identifier()) - .map_or([].as_slice(), |x| x.as_slice()) - .iter() - .filter_map(|inputs| inputs.get(Input::INDEX)) - .filter_map(|input_monitor_node| runtime.executor.introspect(input_monitor_node).ok()) - .filter_map(Instrumented::downcast::) // Some might not resolve (e.g. generics that don't work properly) - } - /// Grab all of the values of a LEVELED input, which introspects as its /// whole legacy list rather than as one element. `T` is the introspected /// element type, which differs from the declared one where a conversion diff --git a/node-graph/libraries/core-types/src/types.rs b/node-graph/libraries/core-types/src/types.rs index 2cfc05f4f4..6968af0184 100644 --- a/node-graph/libraries/core-types/src/types.rs +++ b/node-graph/libraries/core-types/src/types.rs @@ -69,18 +69,6 @@ macro_rules! future { }; } -#[macro_export] -macro_rules! fn_type { - ($type:ty) => { - $crate::Type::Fn(Box::new(concrete!(())), Box::new(concrete!($type))) - }; - ($in_type:ty, $type:ty, alias: $outname:ty) => { - $crate::Type::Fn(Box::new(concrete!($in_type)), Box::new(concrete!($type, $outname))) - }; - ($in_type:ty, $type:ty) => { - $crate::Type::Fn(Box::new(concrete!($in_type)), Box::new(concrete!($type))) - }; -} #[macro_export] macro_rules! fn_type_fut { ($type:ty) => { diff --git a/node-graph/libraries/graphic-types/src/graphic.rs b/node-graph/libraries/graphic-types/src/graphic.rs index e382ded74f..cbee1472d1 100644 --- a/node-graph/libraries/graphic-types/src/graphic.rs +++ b/node-graph/libraries/graphic-types/src/graphic.rs @@ -584,13 +584,6 @@ impl<'e> Graphic<'e> { } } - pub fn as_vector_mut(&mut self) -> Option<&mut Vector> { - match self { - Graphic::Vector(vector) => Some(vector), - _ => None, - } - } - pub fn as_raster(&self) -> Option<&Raster> { match self { Graphic::RasterCPU(raster) => Some(raster),