Remove object handle hack

git-svn-id: file:///home/svn/framework3/trunk@9259 4d416f70-5f16-0410-b530-b9f4589650da
unstable
HD Moore 2010-05-09 17:03:02 +00:00
parent 542782e7e6
commit 22213466d2
1 changed files with 0 additions and 19 deletions

View File

@ -33,25 +33,6 @@ if(RUBY_VERSION =~ /^1\.9\./)
if(Object.const_defined?('Encoding') and Encoding.respond_to?('default_external='))
Encoding.default_external = Encoding.default_internal = "binary"
end
# Disable: See #1731
=begin
# Overload Object.extend() to do an include(), this fixes a memory leak in extend() on 1.9
# This trick doesn't work for anonymous modules, so we pass those to super()
class ::Object
def extend(x)
if ! x.name or x.name.empty?
# $stderr.puts "Extending #{self.class} normally with #{x}"
super(x)
else
# $stderr.puts "Extending #{self.class} via include with #{x}"
instance_eval("class << self; include #{x}; end")
end
end
end
=end
end
if(RUBY_PLATFORM == 'java')