summary refs log tree commit diff stats
path: root/compiler/astalgo.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2017-07-08 21:26:00 +0200
committerAndreas Rumpf <rumpf_a@web.de>2017-07-08 21:27:56 +0200
commite641bc7df0ba5ed72f110a34b828d4d76c9555e7 (patch)
treec0f91a5d1193a94a21fc19ec4d7fc232cfbc9b28 /compiler/astalgo.nim
parentf8266c737687e3e45e6a14a5bc39db153b6bc57d (diff)
downloadNim-e641bc7df0ba5ed72f110a34b828d4d76c9555e7.tar.gz
minor code cleanup
Diffstat (limited to 'compiler/astalgo.nim')
-rw-r--r--compiler/astalgo.nim8
1 files changed, 1 insertions, 7 deletions
diff --git a/compiler/astalgo.nim b/compiler/astalgo.nim
index e32fff181..196ac8690 100644
--- a/compiler/astalgo.nim
+++ b/compiler/astalgo.nim
@@ -576,12 +576,6 @@ proc strTableAdd(t: var TStrTable, n: PSym) =
   strTableRawInsert(t.data, n)
   inc(t.counter)
 
-proc reallySameIdent(a, b: string): bool {.inline.} =
-  when defined(nimfix):
-    result = a[0] == b[0]
-  else:
-    result = true
-
 proc strTableIncl*(t: var TStrTable, n: PSym; onConflictKeepOld=false): bool {.discardable.} =
   # returns true if n is already in the string table:
   # It is essential that `n` is written nevertheless!
@@ -596,7 +590,7 @@ proc strTableIncl*(t: var TStrTable, n: PSym; onConflictKeepOld=false): bool {.d
     # and overloading: (var x=@[]; x).mapIt(it).
     # So it is possible the very same sym is added multiple
     # times to the symbol table which we allow here with the 'it == n' check.
-    if it.name.id == n.name.id and reallySameIdent(it.name.s, n.name.s):
+    if it.name.id == n.name.id:
       if it == n: return false
       replaceSlot = h
     h = nextTry(h, high(t.data))