From 0323226256e55aab1911d7e5e92bceda86c4069d Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Sun, 13 Jul 2014 11:17:08 -0500 Subject: [PATCH] Inline method that just wraps a constant --- Library/Homebrew/bottles.rb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Library/Homebrew/bottles.rb b/Library/Homebrew/bottles.rb index 5be1615f4c..278dc656e7 100644 --- a/Library/Homebrew/bottles.rb +++ b/Library/Homebrew/bottles.rb @@ -16,7 +16,7 @@ end def bottle_file_outdated? f, file filename = file.basename.to_s - return unless f.bottle && filename.match(bottle_regex) + return unless f.bottle && filename.match(Pathname::BOTTLE_EXTNAME_RX) bottle_ext = filename[bottle_native_regex, 1] bottle_url_ext = f.bottle.url[bottle_native_regex, 1] @@ -38,10 +38,6 @@ def bottle_native_regex /(\.#{bottle_tag}\.bottle\.(\d+\.)?tar\.gz)$/o end -def bottle_regex - Pathname::BOTTLE_EXTNAME_RX -end - def bottle_url(root_url, filename_options={}) "#{root_url}/#{bottle_filename(filename_options)}" end