Deep copies of the build object are no longer needed

This commit is contained in:
Jack Nagel 2014-08-11 17:48:30 -05:00
parent b7b8b88cea
commit 15162911e3
2 changed files with 0 additions and 11 deletions

View File

@ -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

View File

@ -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