From cd2397ca2c3a0bb7896686d4c6a6a0d1a37b833c Mon Sep 17 00:00:00 2001 From: Douglas Eichelberger Date: Sat, 30 Mar 2024 14:44:47 -0700 Subject: [PATCH] removed unused code paths --- Library/Homebrew/test/formula_text_auditor_spec.rb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Library/Homebrew/test/formula_text_auditor_spec.rb b/Library/Homebrew/test/formula_text_auditor_spec.rb index 20971959f6..b754613b49 100644 --- a/Library/Homebrew/test/formula_text_auditor_spec.rb +++ b/Library/Homebrew/test/formula_text_auditor_spec.rb @@ -3,20 +3,17 @@ require "formula_text_auditor" RSpec.describe Homebrew::FormulaTextAuditor do - alias_matcher :have_data, :be_data - alias_matcher :have_end, :be_end alias_matcher :have_trailing_newline, :be_trailing_newline let(:dir) { mktmpdir } - def formula_text(name, body = nil, options = {}) + def formula_text(name, body = nil) path = dir/"#{name}.rb" path.write <<~RUBY class #{Formulary.class_s(name)} < Formula #{body} end - #{options[:patch]} RUBY described_class.new(path)