summaryrefslogtreecommitdiff
path: root/lib/bundler
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2022-05-27 21:08:14 +0200
committergit <svn-admin@ruby-lang.org>2022-05-30 17:42:37 +0900
commit0a974e4700e123af507257a8252ac5b1f76e8c10 (patch)
tree9f8a17b1d396711e868e4d4e9bfd2b9fa01d51ab /lib/bundler
parent79761427913e70344ace2d129183ee998bcc22ac (diff)
[rubygems/rubygems] Remove seemingly unnecessary code
https://github.com/rubygems/rubygems/commit/f5dd5204ca
Diffstat (limited to 'lib/bundler')
-rw-r--r--lib/bundler/inline.rb11
1 files changed, 0 insertions, 11 deletions
diff --git a/lib/bundler/inline.rb b/lib/bundler/inline.rb
index a718418fce..db1ca2de65 100644
--- a/lib/bundler/inline.rb
+++ b/lib/bundler/inline.rb
@@ -38,12 +38,6 @@ def gemfile(install = false, options = {}, &gemfile)
raise ArgumentError, "Unknown options: #{opts.keys.join(", ")}" unless opts.empty?
begin
- old_root = Bundler.method(:root)
- bundler_module = class << Bundler; self; end
- bundler_module.send(:remove_method, :root)
- def Bundler.root
- Bundler::SharedHelpers.pwd.expand_path
- end
old_gemfile = ENV["BUNDLE_GEMFILE"]
Bundler::SharedHelpers.set_env "BUNDLE_GEMFILE", "Gemfile"
@@ -71,11 +65,6 @@ def gemfile(install = false, options = {}, &gemfile)
runtime.setup.require
end
ensure
- if bundler_module
- bundler_module.send(:remove_method, :root)
- bundler_module.send(:define_method, :root, old_root)
- end
-
if old_gemfile
ENV["BUNDLE_GEMFILE"] = old_gemfile
else