ruby-changes:6752
From: mame <ko1@a...>
Date: Wed, 30 Jul 2008 22:07:30 +0900 (JST)
Subject: [ruby-changes:6752] Ruby:r18268 (trunk): * string.c (sym_inspect): remove dead code.
mame 2008-07-30 22:07:16 +0900 (Wed, 30 Jul 2008) New Revision: 18268 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=18268 Log: * string.c (sym_inspect): remove dead code. Modified files: trunk/ChangeLog trunk/string.c Index: ChangeLog =================================================================== --- ChangeLog (revision 18267) +++ ChangeLog (revision 18268) @@ -1,3 +1,7 @@ +Wed Jul 30 22:06:56 2008 Yusuke Endoh <mame@t...> + + * string.c (sym_inspect): remove dead code. + Wed Jul 30 21:32:52 2008 Yusuke Endoh <mame@t...> * ChangeLog: fix wrong method name and add reference. Index: string.c =================================================================== --- string.c (revision 18267) +++ string.c (revision 18268) @@ -6334,7 +6334,7 @@ static VALUE sym_inspect(VALUE sym) { - VALUE str, klass = Qundef; + VALUE str; ID id = SYM2ID(sym); rb_encoding *enc; @@ -6348,10 +6348,6 @@ str = rb_str_inspect(str); strncpy(RSTRING_PTR(str), ":\"", 2); } - if (klass != Qundef) { - rb_str_cat2(str, "/"); - rb_str_append(str, rb_inspect(klass)); - } return str; } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/