Remove redundant use of module_eval

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60303 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
knu 2017-10-21 15:57:26 +00:00
parent 92746378ab
commit 76e3825376

View File

@ -643,10 +643,9 @@ class SortedSet < Set
def setup # :nodoc:
@@setup and return
module_eval {
# a hack to shut up warning
alias old_init initialize
}
alias_method :old_init, :initialize
begin
require 'rbtree'
@ -730,10 +729,9 @@ class SortedSet < Set
end
END
end
module_eval {
# a hack to shut up warning
remove_method :old_init
}
@@setup = true
end