From c1f4d0edb8c349e3f1fc2f4e2f11ed956e44542b Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Wed, 8 Aug 2018 07:33:54 +0200 Subject: [PATCH] Remove trivial method. --- Library/Homebrew/software_spec.rb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Library/Homebrew/software_spec.rb b/Library/Homebrew/software_spec.rb index c3182eaf6a..b1ab746057 100644 --- a/Library/Homebrew/software_spec.rb +++ b/Library/Homebrew/software_spec.rb @@ -294,7 +294,7 @@ class Bottle checksum, tag = spec.checksum_for(Utils::Bottles.tag) filename = Filename.create(formula, tag, spec.rebuild) - @resource.url(build_url(spec.root_url, filename.bintray), + @resource.url("#{spec.root_url}/#{filename.bintray}", select_download_strategy(spec.root_url_specs)) @resource.version = formula.pkg_version @resource.checksum = checksum @@ -318,10 +318,6 @@ class Bottle private - def build_url(root_url, filename) - "#{root_url}/#{filename}" - end - def select_download_strategy(specs) specs[:using] ||= DownloadStrategyDetector.detect(@spec.root_url) specs