mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Merge pull request #801 from monaka/pr-cleanup-error_c-20130130
Remove unused define and commented out code.
This commit is contained in:
@@ -16,8 +16,6 @@
|
||||
#include "mruby/proc.h"
|
||||
#include "mruby/irep.h"
|
||||
|
||||
#define warn_printf printf
|
||||
|
||||
mrb_value
|
||||
mrb_exc_new(mrb_state *mrb, struct RClass *c, const char *ptr, long len)
|
||||
{
|
||||
@@ -27,7 +25,6 @@ mrb_exc_new(mrb_state *mrb, struct RClass *c, const char *ptr, long len)
|
||||
mrb_value
|
||||
mrb_exc_new3(mrb_state *mrb, struct RClass* c, mrb_value str)
|
||||
{
|
||||
//StringValue(str);
|
||||
mrb_string_value(mrb, &str);
|
||||
return mrb_funcall(mrb, mrb_obj_value(c), "new", 1, str);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user