summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2014-11-18 22:45:08 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2014-11-18 22:45:08 -0800
commit80e37a39f47899adc978c3e4b8c381f8f212814d (patch)
tree2dc3bf787f4ca2fb40f71446bd1941d3da5987a7
parentb53fc55b73291dd84ecb2202021b0262b4b34042 (diff)
downloadchef-80e37a39f47899adc978c3e4b8c381f8f212814d.tar.gz
remove cache resetting
-rw-r--r--lib/chef/node/attribute.rb6
-rw-r--r--lib/chef/node/attribute_collections.rb3
2 files changed, 0 insertions, 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