diff --git a/lib/mutant.rb b/lib/mutant.rb index b6a7507b..45ce8fd9 100644 --- a/lib/mutant.rb +++ b/lib/mutant.rb @@ -27,7 +27,6 @@ require 'mutant/node_helpers' require 'mutant/singleton_methods' require 'mutant/constants' require 'mutant/support/method_object' -require 'mutant/helper' require 'mutant/random' require 'mutant/mutator' require 'mutant/mutation' diff --git a/lib/mutant/helper.rb b/lib/mutant/helper.rb deleted file mode 100644 index 02d842ef..00000000 --- a/lib/mutant/helper.rb +++ /dev/null @@ -1,23 +0,0 @@ -module Mutant - # Module for support methods - # - # They would normally be defined on the root namespace. - # But it is easier to create the Zombie when there are no - # References to the root namespace name within the library. - # - module Helper - - # Return deep clone of object - # - # @param [Object] object - # - # @return [Object] object - # - # @api private - # - def self.deep_clone(object) - Marshal.load(Marshal.dump(object)) - end - - end # Helper -end # Mutant diff --git a/lib/mutant/mutator.rb b/lib/mutant/mutator.rb index af651343..6bc3f58e 100644 --- a/lib/mutant/mutator.rb +++ b/lib/mutant/mutator.rb @@ -192,7 +192,7 @@ module Mutant # @api private # def dup_input - Helper.deep_clone(input) + input.dup end end # Mutator