From fcaeacd0da895b0a402fd8e9a81a646e7456f35e Mon Sep 17 00:00:00 2001 From: Sam Ford <1584702+samford@users.noreply.github.com> Date: Thu, 25 Jul 2024 12:41:34 -0400 Subject: [PATCH 1/2] livecheck: remove unused URI require `URI#parse` was originally added in #9074 and replaced with `Addressable::URI#parse` in #13306 but `require "uri"` wasn't removed at the time. livecheck doesn't use `URI` now, so this removes the unused `require`. --- Library/Homebrew/livecheck/livecheck.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/Library/Homebrew/livecheck/livecheck.rb b/Library/Homebrew/livecheck/livecheck.rb index eca212bea5..2775b319ed 100644 --- a/Library/Homebrew/livecheck/livecheck.rb +++ b/Library/Homebrew/livecheck/livecheck.rb @@ -7,7 +7,6 @@ require "livecheck/livecheck_version" require "livecheck/skip_conditions" require "livecheck/strategy" require "addressable" -require "uri" module Homebrew # The {Livecheck} module consists of methods used by the `brew livecheck` From 0de85120cb7488452414cd07186f690d5566eb27 Mon Sep 17 00:00:00 2001 From: Sam Ford <1584702+samford@users.noreply.github.com> Date: Thu, 25 Jul 2024 12:43:16 -0400 Subject: [PATCH 2/2] Git: remove unused open3 require I refactored the `Git` strategy to use `SystemCommand` instead of `Open3#capture3` in #13387 but I forgot to remove `require "open3"` at the time. `Git` doesn't use `open3` now, so this removes the unused `require`. --- Library/Homebrew/livecheck/strategy/git.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/Library/Homebrew/livecheck/strategy/git.rb b/Library/Homebrew/livecheck/strategy/git.rb index d9945d4b91..2372802adc 100644 --- a/Library/Homebrew/livecheck/strategy/git.rb +++ b/Library/Homebrew/livecheck/strategy/git.rb @@ -1,7 +1,6 @@ # typed: strict # frozen_string_literal: true -require "open3" require "system_command" module Homebrew