crypto/cleanup: remove unused functions

This commit is contained in:
Harshavardhana
2015-07-29 13:09:52 -07:00
parent 179c5441c3
commit 2671b2dbf4
7 changed files with 14 additions and 35 deletions

View File

@@ -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()