From e77b2b17c4aede27d13d5553fc56034d9444d4e4 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sat, 10 Jan 2015 11:46:09 -0800 Subject: [PATCH] helper/schema: remove unused method --- helper/schema/resource_data.go | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/helper/schema/resource_data.go b/helper/schema/resource_data.go index 0889d294f..10f9e8a77 100644 --- a/helper/schema/resource_data.go +++ b/helper/schema/resource_data.go @@ -114,25 +114,6 @@ func (d *ResourceData) HasChange(key string) bool { return !reflect.DeepEqual(o, n) } -// hasComputedSubKeys walks through a schema and returns whether or not the -// given key contains any subkeys that are computed. -func (d *ResourceData) hasComputedSubKeys(key string, schema *Schema) bool { - prefix := key + "." - - switch t := schema.Elem.(type) { - case *Resource: - for k, schema := range t.Schema { - if d.config.IsComputed(prefix + k) { - return true - } - if d.hasComputedSubKeys(prefix+k, schema) { - return true - } - } - } - return false -} - // Partial turns partial state mode on/off. // // When partial state mode is enabled, then only key prefixes specified