From 1d0ae0156e14d0366d8b171361613abeea92917c Mon Sep 17 00:00:00 2001 From: Lamont Granquist Date: Tue, 18 Nov 2014 22:45:08 -0800 Subject: remove cache resetting --- lib/chef/node/attribute.rb | 6 ------ lib/chef/node/attribute_collections.rb | 3 --- 2 files changed, 9 deletions(-) diff --git a/lib/chef/node/attribute.rb b/lib/chef/node/attribute.rb index 59a4067d9e..56034a60e4 100644 --- a/lib/chef/node/attribute.rb +++ b/lib/chef/node/attribute.rb @@ -230,12 +230,6 @@ class Chef @set_unless_present = setting end - def reset_cache - # FIXME: REMOVED IN CHEF-12 - end - - alias :reset :reset_cache - # Set the cookbook level default attribute component to +new_data+. def default=(new_data) @default = VividMash.new(self, new_data) diff --git a/lib/chef/node/attribute_collections.rb b/lib/chef/node/attribute_collections.rb index c8bc618762..3b19a14d1c 100644 --- a/lib/chef/node/attribute_collections.rb +++ b/lib/chef/node/attribute_collections.rb @@ -63,7 +63,6 @@ class Chef MUTATOR_METHODS.each do |mutator| class_eval(<<-METHOD_DEFN, __FILE__, __LINE__) def #{mutator}(*args, &block) - root.reset_cache super end METHOD_DEFN @@ -128,7 +127,6 @@ class Chef MUTATOR_METHODS.each do |mutator| class_eval(<<-METHOD_DEFN, __FILE__, __LINE__) def #{mutator}(*args, &block) - root.reset_cache super end METHOD_DEFN @@ -153,7 +151,6 @@ class Chef if set_unless? && key?(key) self[key] else - root.reset_cache super end end -- cgit v1.2.1