aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/software_spec.rb
diff options
context:
space:
mode:
authorJack Nagel2014-08-10 21:45:23 -0500
committerJack Nagel2014-08-10 21:45:23 -0500
commit22a3e838ff4f86927b2fc1a8671b96e9bfd8d3d3 (patch)
tree013b0aadb94b5c9b948b542642bfbd695b3d09bd /Library/Homebrew/software_spec.rb
parente50adde2cc9e378a16afe46be6911f9938771638 (diff)
downloadhomebrew-22a3e838ff4f86927b2fc1a8671b96e9bfd8d3d3.tar.bz2
Handle legacy options in the method_added hook
We only need to process the legacy options at load time, not each time the class is instantiated, and only when there is an options method defined.
Diffstat (limited to 'Library/Homebrew/software_spec.rb')
-rw-r--r--Library/Homebrew/software_spec.rb4
1 files changed, 0 insertions, 4 deletions
diff --git a/Library/Homebrew/software_spec.rb b/Library/Homebrew/software_spec.rb
index 867d10393..c595a4596 100644
--- a/Library/Homebrew/software_spec.rb
+++ b/Library/Homebrew/software_spec.rb
@@ -127,10 +127,6 @@ class SoftwareSpec
options << Option.new("without-#{name}", "Build without #{name} support")
end
end
-
- def add_legacy_options(list)
- list.each { |opt, desc| options << Option.new(opt[/^--(.+)$/, 1], desc) }
- end
end
class HeadSoftwareSpec < SoftwareSpec