aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/compat/pathname.rb
diff options
context:
space:
mode:
authorMike McQuaid2018-01-18 08:29:56 +0000
committerGitHub2018-01-18 08:29:56 +0000
commit892e1b5b4fb2ec1b71b9486d65a8932f713af8a0 (patch)
tree6767f47c5eaaa3681a73cf0375fec702f7f3eb9a /Library/Homebrew/compat/pathname.rb
parente97b0ce00fc76b4fa32394279e7d84ed098b2164 (diff)
parent2cbce1fbf0a7a361f2be8b3545998f1a36ab3588 (diff)
downloadbrew-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/pathname.rb')
-rw-r--r--Library/Homebrew/compat/pathname.rb16
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