diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-12-14 00:20:56 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-12-14 00:20:56 +0000 |
commit | d3a7696eb57839ff215bf29cfad6a3cd245e8bc9 (patch) | |
tree | e6961897b9bbb9d0b7a281d35664632211466699 | |
parent | 9406e3826fe8512d1982afc219b6a1d4b5229587 (diff) | |
download | ruby-d3a7696eb57839ff215bf29cfad6a3cd245e8bc9.tar.gz ruby-d3a7696eb57839ff215bf29cfad6a3cd245e8bc9.tar.xz ruby-d3a7696eb57839ff215bf29cfad6a3cd245e8bc9.zip |
* lib/find.rb (Find.find): removed already unnecessary code.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@26085 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | lib/find.rb | 8 |
2 files changed, 5 insertions, 7 deletions
@@ -1,3 +1,7 @@ +Mon Dec 14 09:20:54 2009 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * lib/find.rb (Find.find): removed already unnecessary code. + Sun Dec 13 23:48:25 2009 Tanaka Akira <akr@fsij.org> * lib/find.rb (Find.find): sort directory entries. [ruby-dev:39847] diff --git a/lib/find.rb b/lib/find.rb index 12e2a5a93..16a6a2606 100644 --- a/lib/find.rb +++ b/lib/find.rb @@ -50,13 +50,7 @@ module Find fs.sort! fs.reverse_each {|f| next if f == "." or f == ".." - if File::ALT_SEPARATOR and file =~ /^(?:[\/\\]|[A-Za-z]:[\/\\]?)$/ then - f = file + f - elsif file == "/" then - f = "/" + f - else - f = File.join(file, f) - end + f = File.join(file, f) paths.unshift f.untaint } end |