summaryrefslogtreecommitdiff
path: root/ext/pathname/lib/pathname.rb
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-09-18 22:49:34 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-09-18 22:49:34 +0000
commitf9f73768486da483d039a2b6b7e7c31fe5842944 (patch)
treed1c38f11831573780b3e8bd06ebe1e34f49fe266 /ext/pathname/lib/pathname.rb
parentfb7fe14575f3b71fb98309a53fa05b32ada50203 (diff)
* ext/pathname/pathname.c (path_unlink): Pathname#unlink and
Pathname#delete translated from pathname.rb. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29296 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/pathname/lib/pathname.rb')
-rw-r--r--ext/pathname/lib/pathname.rb13
1 files changed, 0 insertions, 13 deletions
diff --git a/ext/pathname/lib/pathname.rb b/ext/pathname/lib/pathname.rb
index 0b7458e6cb..0c1351dc1e 100644
--- a/ext/pathname/lib/pathname.rb
+++ b/ext/pathname/lib/pathname.rb
@@ -526,19 +526,6 @@ class Pathname # * FileUtils *
end
-class Pathname # * mixed *
- # Removes a file or directory, using <tt>File.unlink</tt> or
- # <tt>Dir.unlink</tt> as necessary.
- def unlink()
- begin
- Dir.unlink @path
- rescue Errno::ENOTDIR
- File.unlink @path
- end
- end
- alias delete unlink
-end
-
class Pathname
undef =~
end