summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-08-26 04:48:38 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-08-26 04:48:38 +0000
commit3a015b31ab90241a4354ed2d42f84fd5f38b1e36 (patch)
tree85dc17ee4f6af1ba9d3444286c08a1d2547e15b4 /lib
parenta307e843ce9e32f880eeff6f119bb819df6c3d6b (diff)
downloadruby-3a015b31ab90241a4354ed2d42f84fd5f38b1e36.tar.gz
ruby-3a015b31ab90241a4354ed2d42f84fd5f38b1e36.tar.xz
ruby-3a015b31ab90241a4354ed2d42f84fd5f38b1e36.zip
* lib/tempfile.rb (Tempfile#unlink): reverted r23494, since the
usage in RubyInline is considered wrong. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24662 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/tempfile.rb1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/tempfile.rb b/lib/tempfile.rb
index a00208cd7..1bee9e101 100644
--- a/lib/tempfile.rb
+++ b/lib/tempfile.rb
@@ -137,7 +137,6 @@ class Tempfile < DelegateClass(File)
# keep this order for thread safeness
begin
if File.exist?(@tmpname)
- closed? or close
File.unlink(@tmpname)
end
@@cleanlist.delete(@tmpname)