Pathname: removed unused method alias
This commit is contained in:
parent
5ae32d5a79
commit
31e0bf61fa
@ -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?
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user