Remove deprecation log messages

This commit is contained in:
Chris Roberts 2021-03-15 15:36:33 -07:00
parent 867d65b079
commit c6153ff84f

View File

@ -27,10 +27,6 @@ module Vagrant
DEFAULT_LOCAL_DATA = ".vagrant"
# List of hooks which are deprecated and should log a warning
# when used
DEPRECATED_HOOKS = [:authenticate_box_url].freeze
# The `cwd` that this environment represents
attr_reader :cwd
@ -522,11 +518,6 @@ module Vagrant
def hook(name, opts=nil)
@logger.info("Running hook: #{name}")
if DEPRECATED_HOOKS.include?(name.to_sym)
@logger.warn("Deprecated hook: #{name}. This hook is deprecated and " \
"will be removed in a future version of Vagrant.")
end
opts ||= {}
opts[:callable] ||= Action::Builder.new
opts[:runner] ||= action_runner