Remove trivial method.

This commit is contained in:
Markus Reiter 2018-08-08 07:33:54 +02:00
parent 15c62dfd01
commit c1f4d0edb8

View File

@ -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