ruby-changes:6761
From: mame <ko1@a...>
Date: Thu, 31 Jul 2008 01:19:00 +0900 (JST)
Subject: [ruby-changes:6761] Ruby:r18277 (trunk): * parse.y (magic_comment_encoding): remove meaningless null check.
mame 2008-07-31 01:18:40 +0900 (Thu, 31 Jul 2008) New Revision: 18277 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=18277 Log: * parse.y (magic_comment_encoding): remove meaningless null check. Modified files: trunk/ChangeLog trunk/parse.y Index: ChangeLog =================================================================== --- ChangeLog (revision 18276) +++ ChangeLog (revision 18277) @@ -1,3 +1,7 @@ +Thu Jul 31 01:18:07 2008 Yusuke Endoh <mame@t...> + + * parse.y (magic_comment_encoding): remove meaningless null check. + Thu Jul 31 01:09:28 2008 Yusuke Endoh <mame@t...> * ext/bigdecimal/bigdecimal.c (VpIsRoundMode): fix tautology Index: parse.y =================================================================== --- parse.y (revision 18276) +++ parse.y (revision 18277) @@ -5805,7 +5805,7 @@ static void magic_comment_encoding(struct parser_params *parser, const char *name, const char *val) { - if (parser && parser->line_count != (parser->has_shebang ? 2 : 1)) + if (parser->line_count != (parser->has_shebang ? 2 : 1)) return; parser_set_encode(parser, val); } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/