about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--src/utils/map.nim3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/utils/map.nim b/src/utils/map.nim
index e4681c51..4966fcb6 100644
--- a/src/utils/map.nim
+++ b/src/utils/map.nim
@@ -1,9 +1,6 @@
 import std/algorithm
 
 func searchInMap*[U, T](a: openArray[(U, T)], u: U): int =
-  when not (typeof(u) is U):
-    if c > cast[typeof(c)](high(U)):
-      return -1
   binarySearch(a, u, proc(x: (U, T), y: U): int = cmp(x[0], y))
 
 func isInMap*[U, T](a: openArray[(U, T)], u: U): bool =