From ebe8d6f3bd699283dc3672c2b19894f73f09e282 Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Tue, 5 May 2020 14:23:25 +0530 Subject: [PATCH] Remove custom mruby eval definition --- binding-mruby/mrb-ext/kernel.cpp | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/binding-mruby/mrb-ext/kernel.cpp b/binding-mruby/mrb-ext/kernel.cpp index d192195..e43baf5 100644 --- a/binding-mruby/mrb-ext/kernel.cpp +++ b/binding-mruby/mrb-ext/kernel.cpp @@ -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)); }