From 65cb26d3c492ff4d045bb6e58e176686db67b017 Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 10 Oct 2009 08:03:24 +0000 Subject: * eval.c (ruby_exec_node): removed unused argument. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25281 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- eval.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'eval.c') diff --git a/eval.c b/eval.c index e9e76ad4f..b529937d5 100644 --- a/eval.c +++ b/eval.c @@ -189,8 +189,8 @@ ruby_cleanup(volatile int ex) return ex; } -int -ruby_exec_node(void *n, const char *file) +static int +ruby_exec_internal(void *n) { volatile int state; VALUE iseq = (VALUE)n; @@ -217,6 +217,12 @@ ruby_stop(int ex) int ruby_run_node(void *n) +{ + return ruby_cleanup(ruby_exec_node(n)); +} + +int +ruby_exec_node(void *n) { VALUE v = (VALUE)n; @@ -228,7 +234,7 @@ ruby_run_node(void *n) return FIX2INT(v); } ruby_init_stack((void *)&n); - return ruby_cleanup(ruby_exec_node(n, 0)); + return ruby_exec_internal(n); } /* -- cgit