diff options
| author | Mike McQuaid | 2018-01-18 08:29:56 +0000 |
|---|---|---|
| committer | GitHub | 2018-01-18 08:29:56 +0000 |
| commit | 892e1b5b4fb2ec1b71b9486d65a8932f713af8a0 (patch) | |
| tree | 6767f47c5eaaa3681a73cf0375fec702f7f3eb9a /Library/Homebrew/compat/utils.rb | |
| parent | e97b0ce00fc76b4fa32394279e7d84ed098b2164 (diff) | |
| parent | 2cbce1fbf0a7a361f2be8b3545998f1a36ab3588 (diff) | |
| download | brew-892e1b5b4fb2ec1b71b9486d65a8932f713af8a0.tar.bz2 | |
Merge pull request #3652 from MikeMcQuaid/add-more-deprecations-disables
Add more deprecations, disable some existing ones.
Diffstat (limited to 'Library/Homebrew/compat/utils.rb')
| -rw-r--r-- | Library/Homebrew/compat/utils.rb | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/Library/Homebrew/compat/utils.rb b/Library/Homebrew/compat/utils.rb index 8904f0f2b..f83d07599 100644 --- a/Library/Homebrew/compat/utils.rb +++ b/Library/Homebrew/compat/utils.rb @@ -2,17 +2,14 @@ module Tty module_function def white - odeprecated "Tty.white", "Tty.reset.bold" - reset.bold + odisabled "Tty.white", "Tty.reset.bold" end end -def puts_columns(items) - odeprecated "puts_columns", "puts Formatter.columns" - puts Formatter.columns(items) +def puts_columns(_) + odisabled "puts_columns", "puts Formatter.columns" end -def plural(n, s = "s") - odeprecated "#plural", "Formatter.pluralize" - (n == 1) ? "" : s +def plural(_, _) + odisabled "#plural", "Formatter.pluralize" end |
