Remove 'eval' command.

Was introduced as a work-around to get some debugging info out of scripts, but tests do now provide the same capability with a better output and, do so automatically.
This commit is contained in:
KtorZ
2022-12-14 22:10:15 +01:00
parent 978a6c6981
commit e5972640d2
7 changed files with 18 additions and 63 deletions

View File

@@ -178,14 +178,6 @@ where
Ok(())
}
}
CodeGenMode::Eval(func_name) => {
let scripts = self
.collect_scripts(&checked_modules, |def| matches!(def, Definition::Fn(..)))?;
let results = self.eval_scripts(scripts, Some(func_name));
self.event_listener
.handle_event(Event::EvaluatingFunction { results });
Ok(())
}
CodeGenMode::NoOp => Ok(()),
}
}

View File

@@ -4,7 +4,6 @@ pub struct Options {
pub enum CodeGenMode {
Test(Option<String>),
Eval(String),
Build(bool),
NoOp,
}