mirror of
https://github.com/minio/minio.git
synced 2025-11-26 12:36:13 -05:00
crypto/cleanup: remove unused functions
This commit is contained in:
@@ -52,17 +52,6 @@ func Sum(reader io.Reader) ([]byte, error) {
|
||||
return d.Sum(nil), nil
|
||||
}
|
||||
|
||||
// SumStream - similar to 'Sum()' but returns a [sha512.Size]byte
|
||||
func SumStream(reader io.Reader) ([sha512.Size]byte, error) {
|
||||
var returnValue [sha512.Size]byte
|
||||
sumSlice, err := Sum(reader)
|
||||
if err != nil {
|
||||
return returnValue, err
|
||||
}
|
||||
copy(returnValue[:], sumSlice)
|
||||
return returnValue, err
|
||||
}
|
||||
|
||||
// New returns a new hash.Hash computing SHA512.
|
||||
func New() hash.Hash {
|
||||
return sha512.New()
|
||||
|
||||
Reference in New Issue
Block a user