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
def license(*)
# TODO: Uncomment after `license` has been
# removed from all official taps.
# odeprecated "Hbc::DSL#license"
odeprecated "Hbc::DSL#license"
end
# depends_on uses a load method so that multiple stanzas can be merged

View File

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

View File

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

View File

@ -2368,7 +2368,7 @@ class Formula
# version '4.8.1'
# end</pre>
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) }
end

View File

@ -194,7 +194,7 @@ class SoftwareSpec
end
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)
end

View File

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