summaryrefslogtreecommitdiff
path: root/lib/chef
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2017-08-28 14:13:07 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2017-08-28 14:13:07 -0700
commit97ff2328940427ee6fc28dd031b300fccd9041ff (patch)
treec9e41f1868c1336a4922776a6067addeb8634867 /lib/chef
parentf4d91ff42eaa6bb939518f35751f17cab07ec3ff (diff)
downloadchef-97ff2328940427ee6fc28dd031b300fccd9041ff.tar.gz
node attributes: remove useless dup in merge_alllcg/remove-useless-dup
since immutablize now does dup + freeze of everything this is definitively unnecessary, and appears to have been unnecessary even in Chef-12 (at last does not break any specs there either). Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'lib/chef')
-rw-r--r--lib/chef/node/attribute.rb4
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/chef/node/attribute.rb b/lib/chef/node/attribute.rb
index 57d1b0a4d3..a6443df62c 100644
--- a/lib/chef/node/attribute.rb
+++ b/lib/chef/node/attribute.rb
@@ -536,10 +536,6 @@ class Chef
apply_path(@automatic, path),
]
- components.map! do |component|
- safe_dup(component)
- end
-
return nil if components.compact.empty?
components.inject(ImmutableMash.new({}, self, __node__, :merged)) do |merged, component|