ruby-changes:27846
From: nobu <ko1@a...>
Date: Sun, 24 Mar 2013 09:04:52 +0900 (JST)
Subject: [ruby-changes:27846] nobu:r39898 (trunk): load.c: no longer used variable and object
nobu 2013-03-24 09:04:43 +0900 (Sun, 24 Mar 2013) New Revision: 39898 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=39898 Log: load.c: no longer used variable and object * load.c (rb_feature_p): remvoe variable and string object which are no longer used since r39874. [Bug #8048] Modified files: trunk/load.c Index: load.c =================================================================== --- load.c (revision 39897) +++ load.c (revision 39898) @@ -371,7 +371,7 @@ loaded_feature_path_i(st_data_t v, st_da https://github.com/ruby/ruby/blob/trunk/load.c#L371 static int rb_feature_p(const char *feature, const char *ext, int rb, int expanded, const char **fn) { - VALUE features, feature_val, this_feature_index = Qnil, v, p, load_path = 0; + VALUE features, this_feature_index = Qnil, v, p, load_path = 0; const char *f, *e; long i, len, elen, n; st_table *loading_tbl, *features_index; @@ -392,7 +392,6 @@ rb_feature_p(const char *feature, const https://github.com/ruby/ruby/blob/trunk/load.c#L392 features = get_loaded_features(); features_index = get_loaded_features_index(); - feature_val = rb_str_new(feature, len); st_lookup(features_index, (st_data_t)feature, (st_data_t *)&this_feature_index); /* We search `features` for an entry such that either "#{features[i]}" == "#{load_path[j]}/#{feature}#{e}" -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/