diff --git a/Library/Homebrew/cask/lib/hbc/dsl.rb b/Library/Homebrew/cask/lib/hbc/dsl.rb index 112ceb943f..1105ac1a22 100644 --- a/Library/Homebrew/cask/lib/hbc/dsl.rb +++ b/Library/Homebrew/cask/lib/hbc/dsl.rb @@ -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 diff --git a/Library/Homebrew/compat/software_spec.rb b/Library/Homebrew/compat/software_spec.rb index 5efd2aeb41..8b0408d02f 100644 --- a/Library/Homebrew/compat/software_spec.rb +++ b/Library/Homebrew/compat/software_spec.rb @@ -1,6 +1,6 @@ class BottleSpecification def revision(*args) - # odeprecated "BottleSpecification.revision", "BottleSpecification.rebuild" + odeprecated "BottleSpecification.revision", "BottleSpecification.rebuild" rebuild(*args) end end diff --git a/Library/Homebrew/compat/utils.rb b/Library/Homebrew/compat/utils.rb index f2cca4726d..8904f0f2b4 100644 --- a/Library/Homebrew/compat/utils.rb +++ b/Library/Homebrew/compat/utils.rb @@ -1,8 +1,3 @@ -def shell_profile - # odeprecated "shell_profile", "Utils::Shell.profile" - Utils::Shell.profile -end - module Tty module_function diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index b2e4ff9889..e681ea0bf4 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -2368,7 +2368,7 @@ class Formula # version '4.8.1' # end 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 diff --git a/Library/Homebrew/software_spec.rb b/Library/Homebrew/software_spec.rb index 0d2b48acc8..c6e7043506 100644 --- a/Library/Homebrew/software_spec.rb +++ b/Library/Homebrew/software_spec.rb @@ -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 diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb index 5a62953949..e3137ac49c 100644 --- a/Library/Homebrew/utils.rb +++ b/Library/Homebrew/utils.rb @@ -556,3 +556,7 @@ def with_env(hash) ENV.update(old_values) end end + +def shell_profile + Utils::Shell.profile +end