aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rdoc/ri/driver.rb
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2022-06-04 16:14:26 +0900
committergit <svn-admin@ruby-lang.org>2022-06-04 16:42:10 +0900
commit9a7be959b1bf9a43e3436246a29db3a4d0f3f352 (patch)
treec5b87443fcf6fce8dd89b86957cb1b27c79a8791 /lib/rdoc/ri/driver.rb
parentd4c7e4d5bb96a3b04b6e64a0e358be4381531827 (diff)
downloadruby-9a7be959b1bf9a43e3436246a29db3a4d0f3f352.tar.gz
[ruby/rdoc] Remove `RDoc::RI::Driver#in_path?`
https://github.com/ruby/rdoc/commit/83051403d6
Diffstat (limited to 'lib/rdoc/ri/driver.rb')
-rw-r--r--lib/rdoc/ri/driver.rb11
1 files changed, 0 insertions, 11 deletions
diff --git a/lib/rdoc/ri/driver.rb b/lib/rdoc/ri/driver.rb
index f7a7d84205..610d78ae68 100644
--- a/lib/rdoc/ri/driver.rb
+++ b/lib/rdoc/ri/driver.rb
@@ -1142,17 +1142,6 @@ or the PAGER environment variable.
end
##
- # Is +file+ in ENV['PATH']?
-
- def in_path? file
- return true if file =~ %r%\A/% and File.exist? file
-
- ENV['PATH'].split(File::PATH_SEPARATOR).any? do |path|
- File.exist? File.join(path, file)
- end
- end
-
- ##
# Lists classes known to ri starting with +names+. If +names+ is empty all
# known classes are shown.