From ff3a6ebc0d931d7850f81a003617999484aaf94e Mon Sep 17 00:00:00 2001 From: Alex Shelkovnykov Date: Sun, 19 Nov 2023 15:33:11 -0500 Subject: [PATCH] jets: remove unnecessary jet check on Nock 2 Nock 2 only comes from Hoon via .*, so we can assume it's never directly used to invoke jetted code. --- rust/ares/src/interpreter.rs | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/rust/ares/src/interpreter.rs b/rust/ares/src/interpreter.rs index 1c24f0e..5a26890 100644 --- a/rust/ares/src/interpreter.rs +++ b/rust/ares/src/interpreter.rs @@ -409,26 +409,6 @@ pub fn interpret(context: &mut Context, mut subject: Noun, formula: Noun) -> Res push_formula(&mut context.stack, vale.formula, false)?; } Todo2::ComputeResult => { - if !cfg!(feature = "sham_hints") { - if let Some(jet) = context.warm.find_jet( - &mut context.stack, - &mut vale.subject, - &mut res, - ) { - match jet(context, vale.subject) { - Ok(jet_res) => { - res = jet_res; - context.stack.pop::(); - continue; - } - Err(JetErr::Punt) => {} - Err(err) => { - break Err(err.into()); - } - } - } - }; - let stack = &mut context.stack; if vale.tail { stack.pop::();