aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorJack Nagel2014-08-10 22:55:28 -0500
committerJack Nagel2014-08-10 22:55:28 -0500
commit85cd9e288a09c7cb55d23640d0c75a898d487b6a (patch)
treed141c9cb0aea3457b73476d9b5d66101bc27cc7a /Library/Homebrew
parentc77ad80f623681afd5fe6087b019316839d9755f (diff)
downloadhomebrew-85cd9e288a09c7cb55d23640d0c75a898d487b6a.tar.bz2
Stop exposing defined options from the build object
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/build_options.rb14
-rw-r--r--Library/Homebrew/test/test_build_options.rb5
2 files changed, 0 insertions, 19 deletions
diff --git a/Library/Homebrew/build_options.rb b/Library/Homebrew/build_options.rb
index a50aa21c1..e104a870a 100644
--- a/Library/Homebrew/build_options.rb
+++ b/Library/Homebrew/build_options.rb
@@ -1,8 +1,6 @@
require 'options'
class BuildOptions
- include Enumerable
-
attr_accessor :args
attr_accessor :universal
@@ -16,18 +14,6 @@ class BuildOptions
@args = other.args.dup
end
- def empty?
- @options.empty?
- end
-
- def each(*args, &block)
- @options.each(*args, &block)
- end
-
- def as_flags
- @options.as_flags
- end
-
def include? name
args.include? '--' + name
end
diff --git a/Library/Homebrew/test/test_build_options.rb b/Library/Homebrew/test/test_build_options.rb
index 4fa332230..072e7b72b 100644
--- a/Library/Homebrew/test/test_build_options.rb
+++ b/Library/Homebrew/test/test_build_options.rb
@@ -10,11 +10,6 @@ class BuildOptionsTests < Homebrew::TestCase
@build = BuildOptions.new(args, opts)
end
- def test_as_flags
- assert_equal %w{--with-foo --with-bar --without-baz --without-qux}.sort,
- @build.as_flags.sort
- end
-
def test_include
assert_includes @build, "with-foo"
refute_includes @build, "with-qux"