utils/bottles: remove unused method.

This commit is contained in:
Mike McQuaid 2021-03-31 20:23:23 +01:00
parent c7e183ef9f
commit c8aea8653a
No known key found for this signature in database
GPG Key ID: 48A898132FD8EE70

View File

@ -39,12 +39,6 @@ module Utils
HOMEBREW_BOTTLES_EXTNAME_REGEX.match(filename).to_a
end
# TODO: remove when removed from brew-test-bot
sig { returns(Regexp) }
def native_regex
/(\.#{Regexp.escape(tag.to_s)}\.bottle\.(\d+\.)?tar\.gz)$/o
end
def receipt_path(bottle_file)
path = Utils.popen_read("tar", "-tzf", bottle_file).lines.map(&:chomp).find do |line|
line =~ %r{.+/.+/INSTALL_RECEIPT.json}