mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00

Deprecate more methods. Internal APIs have been verified to be unused elsewhere and removed. External APIs have had deprecation methods added. Existing deprecations have been either upgraded to produce warnings or no longer deprecated and the reasoning documented.
24 lines
424 B
Ruby
24 lines
424 B
Ruby
def shell_profile
|
|
# odeprecated "shell_profile", "Utils::Shell.profile"
|
|
Utils::Shell.profile
|
|
end
|
|
|
|
module Tty
|
|
module_function
|
|
|
|
def white
|
|
odeprecated "Tty.white", "Tty.reset.bold"
|
|
reset.bold
|
|
end
|
|
end
|
|
|
|
def puts_columns(items)
|
|
odeprecated "puts_columns", "puts Formatter.columns"
|
|
puts Formatter.columns(items)
|
|
end
|
|
|
|
def plural(n, s = "s")
|
|
odeprecated "#plural", "Formatter.pluralize"
|
|
n == 1 ? "" : s
|
|
end
|