From 677bb9f91782fb36b2ab187608c1ea3214f2fbe7 Mon Sep 17 00:00:00 2001 From: matz Date: Sat, 9 Feb 2002 14:47:52 +0000 Subject: * eval.c (rb_eval): singleton chech should be moved from yycompile to here. * eval.c (is_defined): check should be added here too. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2060 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- parse.y | 4 ---- 1 file changed, 4 deletions(-) (limited to 'parse.y') diff --git a/parse.y b/parse.y index d4229547f..0081e9fa8 100644 --- a/parse.y +++ b/parse.y @@ -2145,10 +2145,6 @@ yycompile(f, line) heredoc_end = 0; ruby_sourcefile = strdup(f); ruby_in_compile = 1; - if (ruby_frame && ruby_frame->last_class && - FL_TEST(ruby_frame->last_class, FL_SINGLETON)) { - in_single = 1; - } n = yyparse(); ruby_debug_lines = 0; compile_for_eval = 0; -- cgit