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:
parent
92746378ab
commit
76e3825376
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user