diff options
| author | Mike McQuaid | 2013-05-25 16:02:07 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2013-05-25 16:02:18 +0100 |
| commit | a75aff246e4f058e79b79563c93884b7fd7fa975 (patch) | |
| tree | 2132c2eeac23487d9f1fc97ce7841cc55669b63a /Library | |
| parent | 6f6d4e589413c765eb1d332cfc855b0ffb620461 (diff) | |
| download | brew-a75aff246e4f058e79b79563c93884b7fd7fa975.tar.bz2 | |
Remove cat_without_underscores bottle methods.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/formula.rb | 4 | ||||
| -rw-r--r-- | Library/Homebrew/formula_support.rb | 6 | ||||
| -rw-r--r-- | Library/Homebrew/macos.rb | 7 |
3 files changed, 0 insertions, 17 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index 6781b30ec..34a6cf6ce 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -40,10 +40,6 @@ class Formula unless bottle.checksum.nil? || bottle.checksum.empty? @bottle = bottle bottle.url ||= bottle_url(self) - if bottle.cat_without_underscores - bottle.url.gsub!(MacOS.cat.to_s, - MacOS.cat_without_underscores.to_s) - end end end diff --git a/Library/Homebrew/formula_support.rb b/Library/Homebrew/formula_support.rb index 8b216db66..ed8b72d9d 100644 --- a/Library/Homebrew/formula_support.rb +++ b/Library/Homebrew/formula_support.rb @@ -76,15 +76,12 @@ end class Bottle < SoftwareSpec attr_writer :url - # TODO: Can be removed when all bottles migrated to underscored cat symbols. - attr_reader :cat_without_underscores def initialize super @revision = 0 @prefix = '/usr/local' @cellar = '/usr/local/Cellar' - @cat_without_underscores = false end # Checksum methods in the DSL's bottle block optionally take @@ -101,9 +98,6 @@ class Bottle < SoftwareSpec if @#{cksum}.has_key? MacOS.cat @checksum = @#{cksum}[MacOS.cat] - elsif @#{cksum}.has_key? MacOS.cat_without_underscores - @checksum = @#{cksum}[MacOS.cat_without_underscores] - @cat_without_underscores = true end end EOS diff --git a/Library/Homebrew/macos.rb b/Library/Homebrew/macos.rb index bae263f37..efce93aaf 100644 --- a/Library/Homebrew/macos.rb +++ b/Library/Homebrew/macos.rb @@ -27,13 +27,6 @@ module MacOS extend self end end - # TODO: Can be removed when all bottles migrated to underscored cat symbols. - def cat_without_underscores - possibly_underscored_cat = cat - return nil unless possibly_underscored_cat - cat.to_s.gsub('_', '').to_sym - end - def oldest_cpu if Hardware::CPU.type == :intel if Hardware::CPU.is_64_bit? |
