aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2013-10-14 22:05:30 -0500
committerJack Nagel2013-10-14 22:05:30 -0500
commit31e0bf61fa5173c8fb6267961ada71a82e3b9f00 (patch)
treeb057d268b8e5c5c3033d6cb91fffafce09ceeba5 /Library
parent5ae32d5a793c00fb3f52c3c19f4469feab4aaf2f (diff)
downloadbrew-31e0bf61fa5173c8fb6267961ada71a82e3b9f00.tar.bz2
Pathname: removed unused method alias
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/extend/pathname.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/Library/Homebrew/extend/pathname.rb b/Library/Homebrew/extend/pathname.rb
index eb0bfefad..f0b2c8285 100644
--- a/Library/Homebrew/extend/pathname.rb
+++ b/Library/Homebrew/extend/pathname.rb
@@ -235,11 +235,10 @@ class Pathname
incremental_hash(Digest::SHA1)
end
- def sha2
+ def sha256
require 'digest/sha2'
incremental_hash(Digest::SHA2)
end
- alias_method :sha256, :sha2
def verify_checksum expected
raise ChecksumMissingError if expected.nil? or expected.empty?