From 7bd2a8508eeeaa7cc5347b5bc9e2b64be6ccb7f3 Mon Sep 17 00:00:00 2001 From: Jun Hiroe Date: Mon, 27 Oct 2014 00:29:00 +0900 Subject: Refactor mrbc_context_new func --- src/parse.y | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/parse.y') diff --git a/src/parse.y b/src/parse.y index 00d784d81..b47819105 100644 --- a/src/parse.y +++ b/src/parse.y @@ -5447,10 +5447,7 @@ mrb_parser_free(parser_state *p) { MRB_API mrbc_context* mrbc_context_new(mrb_state *mrb) { - mrbc_context *c; - - c = (mrbc_context *)mrb_calloc(mrb, 1, sizeof(mrbc_context)); - return c; + return (mrbc_context *)mrb_calloc(mrb, 1, sizeof(mrbc_context)); } MRB_API void -- cgit v1.2.3