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
commit576b5c66dcb8047adab6a0c6918daef22d8b2bfc (patch)
tree4d927b15f23656cd087ecec84f8ed489074062b6 /Library
parentb1434c543a25531f9fd972868c29bb593c5daab6 (diff)
downloadhomebrew-576b5c66dcb8047adab6a0c6918daef22d8b2bfc.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?