summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2020-03-05 21:56:54 +0100
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2020-03-06 14:01:37 +0100
commitd0f9ec6af242a1e58f3cebf3397d6c38908a17e5 (patch)
tree931f14b03e8ea3850a4abd90c7fd47e996f85d03
parent70dbb2ec1a9733dccf99f5e95933f1af9a1a71fd (diff)
downloadbundler-d0f9ec6af242a1e58f3cebf3397d6c38908a17e5.tar.gz
Remove dead code
This method is never called with a block.
-rw-r--r--spec/support/helpers.rb12
1 files changed, 0 insertions, 12 deletions
diff --git a/spec/support/helpers.rb b/spec/support/helpers.rb
index b9b53fe279..3ca79a159d 100644
--- a/spec/support/helpers.rb
+++ b/spec/support/helpers.rb
@@ -395,23 +395,11 @@ module Spec
FileUtils.rm_rf(system_gem_path)
FileUtils.mkdir_p(system_gem_path)
- gem_home = ENV["GEM_HOME"]
- gem_path = ENV["GEM_PATH"]
- path = ENV["PATH"]
-
set_gem_paths_to(system_gem_path)
gems.each do |gem|
gem_command! "install --no-document #{gem}"
end
- return unless block_given?
- begin
- yield
- ensure
- ENV["GEM_HOME"] = gem_home
- ENV["GEM_PATH"] = gem_path
- ENV["PATH"] = path
- end
end
def set_gem_paths_to(path)