summary refs log tree commit diff stats
path: root/lib/pure
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2016-11-08 08:36:33 +0100
committerAraq <rumpf_a@web.de>2016-11-08 08:37:15 +0100
commit72af7e68210ce9fb2701ec999795fdccd8272d41 (patch)
tree63286370f190819fff8c86a980097515dddc3b9b /lib/pure
parentc0b8a793159ea4c476b566267102d09ae7e6cf9d (diff)
downloadNim-72af7e68210ce9fb2701ec999795fdccd8272d41.tar.gz
use a full MD5 hash with no collision detection for proc names
Diffstat (limited to 'lib/pure')
-rw-r--r--lib/pure/securehash.nim15
1 files changed, 0 insertions, 15 deletions
diff --git a/lib/pure/securehash.nim b/lib/pure/securehash.nim
index 445cb5cb5..f141732a7 100644
--- a/lib/pure/securehash.nim
+++ b/lib/pure/securehash.nim
@@ -173,21 +173,6 @@ proc sha1(src: string): Sha1Digest =
   ## Calculate SHA1 from input string
   sha1(src, src.len)
 
-proc `!&`*(h: Hash, val: int): Hash {.inline.} =
-  ## mixes a hash value `h` with `val` to produce a new hash value. This is
-  ## only needed if you need to implement a hash proc for a new datatype.
-  result = h +% val
-  result = result +% result shl 10
-  result = result xor (result shr 6)
-
-proc `!$`*(h: Hash): Hash {.inline.} =
-  ## finishes the computation of the hash value. This is
-  ## only needed if you need to implement a hash proc for a new datatype.
-
-proc
-proc hashData*(data: pointer, size: int): Hash =
-
-
 proc secureHash*(str: string): SecureHash = SecureHash(sha1(str))
 proc secureHashFile*(filename: string): SecureHash = secureHash(readFile(filename))
 proc `$`*(self: SecureHash): string =