From f24a52b04a70b8d69c51ba11b722352f61b8da9b Mon Sep 17 00:00:00 2001 From: Yukihiro Matsumoto Date: Mon, 4 Jun 2012 01:46:04 +0900 Subject: remove mrb_open NULL check for small test programs. They are only for proof-on-concept test, not production code. Adding precise checks are not needed for those code --- src/parse.y | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src/parse.y') diff --git a/src/parse.y b/src/parse.y index 884290961..eae9fb373 100644 --- a/src/parse.y +++ b/src/parse.y @@ -5518,11 +5518,6 @@ main() mrb_state *mrb = mrb_open(); int n; - if (mrb == NULL) { - fprintf(stderr, "Invalid mrb_state, exiting parser test"); - return EXIT_FAILURE; - } - n = mrb_compile_string(mrb, "\ def fib(n)\n\ if n<2\n\ -- cgit v1.2.3