aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike McQuaid2013-05-25 16:02:07 +0100
committerMike McQuaid2013-05-25 16:02:18 +0100
commitd6dae4544f3c09b6f85234d322b03de6d9c4b0c2 (patch)
treed819794f6b5f08c13d9aaaff92c47c3d1c6bdd64
parente81c0047e58505a0daae5bb76c35b4155ac94746 (diff)
downloadhomebrew-d6dae4544f3c09b6f85234d322b03de6d9c4b0c2.tar.bz2
Remove cat_without_underscores bottle methods.
-rw-r--r--Library/Homebrew/formula.rb4
-rw-r--r--Library/Homebrew/formula_support.rb6
-rw-r--r--Library/Homebrew/macos.rb7
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?