mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-30 01:44:37 +00:00
securehash: remove unused emptySecureHash
This commit is contained in:
@@ -16,14 +16,6 @@ type
|
||||
SHA1Digest = array[0 .. sha_digest_size-1, uint8]
|
||||
SecureHash* = distinct SHA1Digest
|
||||
|
||||
const emptySecureHash = SecureHash([
|
||||
0u8, 0, 0, 0,
|
||||
0, 0, 0, 0,
|
||||
0, 0, 0, 0,
|
||||
0, 0, 0, 0,
|
||||
0, 0, 0, 0,
|
||||
])
|
||||
|
||||
proc sha1(src: string) : SHA1Digest
|
||||
|
||||
proc secureHash*(str: string): SecureHash = SecureHash(sha1(str))
|
||||
|
||||
Reference in New Issue
Block a user