diff --git a/fidget/src/core/vm/mod.rs b/fidget/src/core/vm/mod.rs index 9e963b6c..cf32fc15 100644 --- a/fidget/src/core/vm/mod.rs +++ b/fidget/src/core/vm/mod.rs @@ -116,15 +116,6 @@ impl From> for GenericVmFunction { } impl GenericVmFunction { - pub(crate) fn simplify_inner( - &self, - choices: &[Choice], - storage: VmData, - workspace: &mut VmWorkspace, - ) -> Result { - let d = self.0.simplify(choices, workspace, storage)?; - Ok(Self(Arc::new(d))) - } /// Returns a characteristic size (the length of the inner assembly tape) pub fn size(&self) -> usize { self.0.len() @@ -175,7 +166,8 @@ impl Function for GenericVmFunction { storage: VmData, workspace: &mut Self::Workspace, ) -> Result { - self.simplify_inner(trace.as_slice(), storage, workspace) + let d = self.0.simplify(trace.as_slice(), workspace, storage)?; + Ok(Self(Arc::new(d))) } fn recycle(self) -> Option { diff --git a/fidget/src/jit/mod.rs b/fidget/src/jit/mod.rs index a1d0a814..6d0da4fb 100644 --- a/fidget/src/jit/mod.rs +++ b/fidget/src/jit/mod.rs @@ -899,9 +899,7 @@ impl Function for JitFunction { storage: Self::Storage, workspace: &mut Self::Workspace, ) -> Result { - self.0 - .simplify_inner(trace.as_slice(), storage, workspace) - .map(JitFunction) + self.0.simplify(trace, storage, workspace).map(JitFunction) } fn recycle(self) -> Option {