From d0f9ec6af242a1e58f3cebf3397d6c38908a17e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= Date: Thu, 5 Mar 2020 21:56:54 +0100 Subject: Remove dead code This method is never called with a block. --- spec/support/helpers.rb | 12 ------------ 1 file changed, 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) -- cgit v1.2.1