common: pr updates

This commit is contained in:
kiel barry 2018-05-14 10:18:55 -07:00 committed by GitHub
parent 1e61e5dcd3
commit 9e384f5658
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -119,11 +119,6 @@ func (h Hash) Generate(rand *rand.Rand, size int) reflect.Value {
return reflect.ValueOf(h)
}
// EmptyHash checks whether h is the zero hash.
func EmptyHash(h Hash) bool {
return h == Hash{}
}
// UnprefixedHash allows marshaling a Hash without 0x prefix.
type UnprefixedHash Hash