From 6e20d2758281a9f331edecc56b6dd4f8df86f277 Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Mon, 30 Nov 2020 00:49:07 +0100 Subject: [PATCH] Remove some unneeded `require`s. --- Library/Homebrew/extend/os/linux/system_config.rb | 3 +-- Library/Homebrew/uninstall.rb | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/Library/Homebrew/extend/os/linux/system_config.rb b/Library/Homebrew/extend/os/linux/system_config.rb index 6c93d2a4fa..2f07c89b18 100644 --- a/Library/Homebrew/extend/os/linux/system_config.rb +++ b/Library/Homebrew/extend/os/linux/system_config.rb @@ -1,7 +1,6 @@ # typed: true # frozen_string_literal: true -require "formula" require "os/linux/glibc" require "system_command" @@ -48,7 +47,7 @@ module SystemConfig out.puts "/usr/bin/gcc: #{host_gcc_version}" out.puts "/usr/bin/ruby: #{host_ruby_version}" if RUBY_PATH != HOST_RUBY_PATH ["glibc", "gcc", "xorg"].each do |f| - out.puts "#{f}: #{formula_linked_version f}" + out.puts "#{f}: #{formula_linked_version(f)}" end end end diff --git a/Library/Homebrew/uninstall.rb b/Library/Homebrew/uninstall.rb index cd3140e2bb..156d74478e 100644 --- a/Library/Homebrew/uninstall.rb +++ b/Library/Homebrew/uninstall.rb @@ -2,7 +2,6 @@ # frozen_string_literal: true require "keg" -require "formula" module Homebrew # Helper module for uninstalling kegs.