summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordanielsdeleo <dan@chef.io>2016-02-05 15:37:45 -0800
committerdanielsdeleo <dan@chef.io>2016-02-16 15:26:43 -0800
commit83ece3fa14abfdbffb93754d5c7fb18b1d6312df (patch)
treed06b7098dffdcc1cc8d8fea5814b2f9443f15bf9
parente74dd7d7a3ff3cf1066a9bafa53790dc84f05141 (diff)
downloadchef-83ece3fa14abfdbffb93754d5c7fb18b1d6312df.tar.gz
Comment unused inlined code
-rw-r--r--lib/chef/chef_fs/file_system/repository/chef_repository_file_system_cookbooks_dir.rb52
1 files changed, 26 insertions, 26 deletions
diff --git a/lib/chef/chef_fs/file_system/repository/chef_repository_file_system_cookbooks_dir.rb b/lib/chef/chef_fs/file_system/repository/chef_repository_file_system_cookbooks_dir.rb
index b314d5a341..bc564bc10f 100644
--- a/lib/chef/chef_fs/file_system/repository/chef_repository_file_system_cookbooks_dir.rb
+++ b/lib/chef/chef_fs/file_system/repository/chef_repository_file_system_cookbooks_dir.rb
@@ -109,45 +109,45 @@ class Chef
# Inlined from ChefRepositoryFileSystemEntry
##############################
- def write_pretty_json=(value)
- @write_pretty_json = value
- end
+ ## def write_pretty_json=(value)
+ ## @write_pretty_json = value
+ ## end
- def write_pretty_json
- @write_pretty_json.nil? ? root.write_pretty_json : @write_pretty_json
- end
+ ## def write_pretty_json
+ ## @write_pretty_json.nil? ? root.write_pretty_json : @write_pretty_json
+ ## end
def data_handler
@data_handler || parent.data_handler
end
- def chef_object
- begin
- return data_handler.chef_object(Chef::JSONCompat.parse(read))
- rescue
- Chef::Log.error("Could not read #{path_for_printing} into a Chef object: #{$!}")
- end
- nil
- end
+ ## def chef_object
+ ## begin
+ ## return data_handler.chef_object(Chef::JSONCompat.parse(read))
+ ## rescue
+ ## Chef::Log.error("Could not read #{path_for_printing} into a Chef object: #{$!}")
+ ## end
+ ## nil
+ ## end
# overridden by subclass
## def can_have_child?(name, is_dir)
## !is_dir && name[-5..-1] == ".json"
## end
- def write(file_contents)
- if file_contents && write_pretty_json && name[-5..-1] == ".json"
- file_contents = minimize(file_contents, self)
- end
- super(file_contents)
- end
+ ## def write(file_contents)
+ ## if file_contents && write_pretty_json && name[-5..-1] == ".json"
+ ## file_contents = minimize(file_contents, self)
+ ## end
+ ## super(file_contents)
+ ## end
- def minimize(file_contents, entry)
- object = Chef::JSONCompat.parse(file_contents)
- object = data_handler.normalize(object, entry)
- object = data_handler.minimize(object, entry)
- Chef::JSONCompat.to_json_pretty(object)
- end
+ ## def minimize(file_contents, entry)
+ ## object = Chef::JSONCompat.parse(file_contents)
+ ## object = data_handler.normalize(object, entry)
+ ## object = data_handler.minimize(object, entry)
+ ## Chef::JSONCompat.to_json_pretty(object)
+ ## end
# overridden by subclass
## protected