diff --git a/Library/Homebrew/options.rb b/Library/Homebrew/options.rb index 8c250e2b3f..41f5d555a7 100644 --- a/Library/Homebrew/options.rb +++ b/Library/Homebrew/options.rb @@ -50,9 +50,6 @@ end class Options include Enumerable - attr_reader :options - protected :options - def self.create(array) options = new array.each do |e| @@ -70,11 +67,6 @@ class Options @options = Set.new(*args) end - def initialize_copy(other) - super - @options = other.options.dup - end - def each(*args, &block) @options.each(*args, &block) end diff --git a/Library/Homebrew/test/test_options.rb b/Library/Homebrew/test/test_options.rb index 1f0af11f66..06d3c246e7 100644 --- a/Library/Homebrew/test/test_options.rb +++ b/Library/Homebrew/test/test_options.rb @@ -125,10 +125,4 @@ class OptionsTests < Homebrew::TestCase debug = Option.new("-d") assert_equal [verbose, debug].sort, Options.create(array).sort end - - def test_copies_do_not_share_underlying_collection - copy = @options.dup << Option.new("foo") - assert_empty @options - assert_equal 1, copy.count - end end