aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-08-11 17:48:30 -0500
committerJack Nagel2014-08-11 17:48:30 -0500
commit15162911e3d8bc71004f91ae5d77bf9c977a8b3e (patch)
treef19f9c4d879c512ff97ed74799decae47d7427fe /Library
parentb7b8b88cea98ed4b24b813f13d7b06b538090fa6 (diff)
downloadbrew-15162911e3d8bc71004f91ae5d77bf9c977a8b3e.tar.bz2
Deep copies of the build object are no longer needed
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/build_options.rb5
-rw-r--r--Library/Homebrew/test/test_build_options.rb6
2 files changed, 0 insertions, 11 deletions
diff --git a/Library/Homebrew/build_options.rb b/Library/Homebrew/build_options.rb
index 58348da8a..f3c7e856e 100644
--- a/Library/Homebrew/build_options.rb
+++ b/Library/Homebrew/build_options.rb
@@ -8,11 +8,6 @@ class BuildOptions
@options = options
end
- def initialize_copy(other)
- super
- @args = other.args.dup
- 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 072e7b72b..e3ed44f9d 100644
--- a/Library/Homebrew/test/test_build_options.rb
+++ b/Library/Homebrew/test/test_build_options.rb
@@ -31,10 +31,4 @@ class BuildOptionsTests < Homebrew::TestCase
def test_unused_options
assert_includes @build.unused_options, "--without-baz"
end
-
- def test_copies_do_not_share_underlying_args
- orig = BuildOptions.new [], Options.new
- copy = orig.dup
- refute_same orig.args, copy.args
- end
end