Skip to content

Commit

Permalink
Remove unneeded requires when using CookbookVersionLoader
Browse files Browse the repository at this point in the history
CookbookVersion and CookbookVersionLoader may interact with classes
defined in these files, but never reference their constants directly, so
they do not need to be loaded.
  • Loading branch information
danielsdeleo committed May 19, 2014
1 parent 62103f4 commit 8a9b9bd
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion lib/chef/cookbook/cookbook_version_loader.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

require 'chef/config'
require 'chef/cookbook_version'
require 'chef/cookbook/chefignore'
require 'chef/cookbook/metadata'
Expand Down
3 changes: 0 additions & 3 deletions lib/chef/cookbook_version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@
# limitations under the License.

require 'chef/log'
require 'chef/node'
require 'chef/resource_definition_list'
require 'chef/recipe'
require 'chef/cookbook/file_vendor'
require 'chef/cookbook/metadata'
require 'chef/version_class'
Expand Down

0 comments on commit 8a9b9bd

Please sign in to comment.