1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* tool/mkconfig.rb: remove not to require rbconfig/obsolete.rb.

* lib/rbconfig/obsolete.rb: removed.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46730 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2014-07-07 02:07:01 +00:00
parent a31219c91c
commit 011b74b748
3 changed files with 6 additions and 39 deletions

View file

@ -1,3 +1,9 @@
Mon Jul 7 11:02:55 2014 NARUSE, Yui <naruse@ruby-lang.org>
* tool/mkconfig.rb: remove not to require rbconfig/obsolete.rb.
* lib/rbconfig/obsolete.rb: removed.
Mon Jul 7 10:52:03 2014 Koichi Sasada <ko1@atdot.net>
* parse.y: do not use rb_gc_resurrect(), but create a new dynamic

View file

@ -1,38 +0,0 @@
module ::RbConfig
module Obsolete
end
class << Obsolete
def _warn_
loc, = caller_locations(2, 1)
loc = "#{loc}: " if loc
warn "#{loc}Use RbConfig instead of obsolete and deprecated Config."
self
end
def const_missing(name)
_warn_
::RbConfig.const_get(name)
end
def method_missing(*args, &block)
_warn_
rbconfig = ::RbConfig
result = rbconfig.__send__(*args, &block)
result = rbconfig if rbconfig.equal?(result)
result
end
def respond_to_missing?(*args, &block)
_warn_
::RbConfig.send(:respond_to_missing?, *args, &block)
end
end
end
::Config = ::RbConfig::Obsolete._warn_
=begin
def Object.const_missing(name)
return super unless name == :Config
::RbConfig::Obsolete._warn_
end
=end

View file

@ -267,7 +267,6 @@ print <<EOS
)
end
end
autoload :Config, "rbconfig/obsolete.rb" # compatibility for ruby-1.8.4 and older.
CROSS_COMPILING = nil unless defined? CROSS_COMPILING
EOS