Merge pull request #13939 from apainintheneck/rm-unused-fetch-cask-function

Remove unused function from bump-cask-pr
This commit is contained in:
Kevin 2022-09-28 18:39:11 -07:00 committed by GitHub
commit 7b00b2b1d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -188,19 +188,6 @@ module Homebrew
GitHub.create_bump_pr(pr_info, args: args)
end
def fetch_cask(contents, config: nil)
cask = Cask::CaskLoader.load(contents)
cask.config = config if config.present?
old_hash = cask.sha256.to_s
cask_download = Cask::Download.new(cask, quarantine: true)
download = cask_download.fetch(verify_download_integrity: false)
Utils::Tar.validate_file(download)
new_hash = download.sha256
[old_hash, new_hash]
end
def check_open_pull_requests(cask, args:)
tap_remote_repo = cask.tap.remote_repo || cask.tap.full_name
GitHub.check_for_duplicate_pull_requests(cask.token, tap_remote_repo,