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

@@ -53,7 +53,7 @@ func block(dig *digest, p []byte) {
case cpu.HasSSE41() == true:
blockSSE(dig, p)
default:
blockSoftware(dig, p)
blockGeneric(dig, p)
}
}
@@ -182,14 +182,3 @@ func Sum(reader io.Reader) ([]byte, error) {
}
return h.Sum(nil), nil
}
// SumStream - similar to 'Sum()' but returns a [Size]byte
func SumStream(reader io.Reader) ([Size]byte, error) {
var returnValue [Size]byte
sumSlice, err := Sum(reader)
if err != nil {
return returnValue, err
}
copy(returnValue[:], sumSlice)
return returnValue, err
}