From 3d4df6ff2a1e9f4332dcc221f85c93b24efc1966 Mon Sep 17 00:00:00 2001 From: Carlo Cabrera Date: Sat, 2 Aug 2025 03:03:23 +0800 Subject: [PATCH] style: remove unused method There is no `rubocop` formula, so this method cannot possibly be used without erroring out. --- Library/Homebrew/style.rb | 6 ------ 1 file changed, 6 deletions(-) diff --git a/Library/Homebrew/style.rb b/Library/Homebrew/style.rb index f9049d7fb0..2b5313b52b 100644 --- a/Library/Homebrew/style.rb +++ b/Library/Homebrew/style.rb @@ -320,12 +320,6 @@ module Homebrew HOMEBREW_REPOSITORY.glob(".github/workflows/*.yml") end - def self.rubocop - require "formula" - ensure_formula_installed!("rubocop", latest: true, - reason: "Ruby style checks").opt_bin/"rubocop" - end - def self.shellcheck require "formula" ensure_formula_installed!("shellcheck", latest: true,