Remove custom mruby eval definition

This commit is contained in:
Varun Patil 2020-05-05 14:23:25 +05:30
parent 2b7f78d239
commit ebe8d6f3bd
1 changed files with 0 additions and 10 deletions

View File

@ -39,15 +39,6 @@
void mrbBindingTerminate();
MRB_FUNCTION(kernelEval)
{
const char *exp;
mrb_int expLen;
mrb_get_args(mrb, "s", &exp, &expLen);
return mrb_load_nstring(mrb, exp, expLen);
}
MRB_FUNCTION(kernelLoadData)
{
const char *filename;
@ -95,7 +86,6 @@ void kernelBindingInit(mrb_state *mrb)
{
RClass *module = mrb->kernel_module;
mrb_define_module_function(mrb, module, "eval", kernelEval, MRB_ARGS_REQ(1));
mrb_define_module_function(mrb, module, "load_data", kernelLoadData, MRB_ARGS_REQ(1));
mrb_define_module_function(mrb, module, "save_data", kernelSaveData, MRB_ARGS_REQ(2));
}