Enable more deprecations.

It's been long enough that these have been commented out so let's
enable them globally.
This commit is contained in:
Mike McQuaid 2017-07-14 17:03:33 +01:00
parent e0560ff363
commit 2d18ba586b
6 changed files with 8 additions and 11 deletions

View File

@ -204,9 +204,7 @@ module Hbc
end end
def license(*) def license(*)
# TODO: Uncomment after `license` has been odeprecated "Hbc::DSL#license"
# removed from all official taps.
# odeprecated "Hbc::DSL#license"
end end
# depends_on uses a load method so that multiple stanzas can be merged # depends_on uses a load method so that multiple stanzas can be merged

View File

@ -1,6 +1,6 @@
class BottleSpecification class BottleSpecification
def revision(*args) def revision(*args)
# odeprecated "BottleSpecification.revision", "BottleSpecification.rebuild" odeprecated "BottleSpecification.revision", "BottleSpecification.rebuild"
rebuild(*args) rebuild(*args)
end end
end end

View File

@ -1,8 +1,3 @@
def shell_profile
# odeprecated "shell_profile", "Utils::Shell.profile"
Utils::Shell.profile
end
module Tty module Tty
module_function module_function

View File

@ -2368,7 +2368,7 @@ class Formula
# version '4.8.1' # version '4.8.1'
# end</pre> # end</pre>
def fails_with(compiler, &block) def fails_with(compiler, &block)
# odeprecated "fails_with :llvm" if compiler == :llvm odeprecated "fails_with :llvm" if compiler == :llvm
specs.each { |spec| spec.fails_with(compiler, &block) } specs.each { |spec| spec.fails_with(compiler, &block) }
end end

View File

@ -194,7 +194,7 @@ class SoftwareSpec
end end
def fails_with(compiler, &block) def fails_with(compiler, &block)
# odeprecated "fails_with :llvm" if compiler == :llvm odeprecated "fails_with :llvm" if compiler == :llvm
compiler_failures << CompilerFailure.create(compiler, &block) compiler_failures << CompilerFailure.create(compiler, &block)
end end

View File

@ -556,3 +556,7 @@ def with_env(hash)
ENV.update(old_values) ENV.update(old_values)
end end
end end
def shell_profile
Utils::Shell.profile
end