diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-09-18 22:49:34 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-09-18 22:49:34 +0000 |
commit | f9f73768486da483d039a2b6b7e7c31fe5842944 (patch) | |
tree | d1c38f11831573780b3e8bd06ebe1e34f49fe266 /ext/pathname/lib/pathname.rb | |
parent | fb7fe14575f3b71fb98309a53fa05b32ada50203 (diff) | |
download | ruby-f9f73768486da483d039a2b6b7e7c31fe5842944.tar.gz |
* 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.rb | 13 |
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 |