From 494b64c63a2d278642c60e5821e88c0370c057c0 Mon Sep 17 00:00:00 2001 From: Holger Just Date: Thu, 16 Feb 2017 23:04:54 +0100 Subject: [PATCH] Remove redundant private method Rackstash::Fields::Array#new The method is already provided by the parent class AbstractCollection --- lib/rackstash/fields/array.rb | 6 ------ 1 file changed, 6 deletions(-) diff --git a/lib/rackstash/fields/array.rb b/lib/rackstash/fields/array.rb index 7704d7f..2369d15 100644 --- a/lib/rackstash/fields/array.rb +++ b/lib/rackstash/fields/array.rb @@ -165,12 +165,6 @@ module Rackstash return obj.to_ary if obj.respond_to?(:to_ary) raise TypeError, "no implicit conversion of #{obj.class} into Array" end - - def new(raw) - self.class.new.tap do |array| - array.raw = raw - end - end end def self.Array(array)