diff options
| author | Mike McQuaid | 2018-01-09 19:52:34 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2018-01-09 19:52:34 +0000 |
| commit | 2cbce1fbf0a7a361f2be8b3545998f1a36ab3588 (patch) | |
| tree | 709d8f4543cd2b94da42fb1ca37c7ab3f6a3d57e /Library/Homebrew/compat/pathname.rb | |
| parent | 9ed1ed3c0577a20b0144cb83501838b2b8c681ae (diff) | |
| download | brew-2cbce1fbf0a7a361f2be8b3545998f1a36ab3588.tar.bz2 | |
Add more deprecations, disable some existing ones.
Add more `odeprecated` calls to places that have been deprecated for a
while in the wild and move some of the existing `odeprecated` calls to
be `odisabled` to allow deleting the compatibility code.
Diffstat (limited to 'Library/Homebrew/compat/pathname.rb')
| -rw-r--r-- | Library/Homebrew/compat/pathname.rb | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/Library/Homebrew/compat/pathname.rb b/Library/Homebrew/compat/pathname.rb index 58888f017..df4b261a9 100644 --- a/Library/Homebrew/compat/pathname.rb +++ b/Library/Homebrew/compat/pathname.rb @@ -1,17 +1,9 @@ class Pathname - def cp(dst) - odeprecated "Pathname#cp", "FileUtils.cp" - if file? - FileUtils.cp to_s, dst - else - FileUtils.cp_r to_s, dst - end - dst + def cp(_) + odisabled "Pathname#cp", "FileUtils.cp" end - def chmod_R(perms) - odeprecated "Pathname#chmod_R", "FileUtils.chmod_R" - require "fileutils" - FileUtils.chmod_R perms, to_s + def chmod_R(_) + odisabled "Pathname#chmod_R", "FileUtils.chmod_R" end end |
