diff --git a/compiler/debuginfo.nim b/compiler/debuginfo.nim index f30de2893c..8589730b9b 100644 --- a/compiler/debuginfo.nim +++ b/compiler/debuginfo.nim @@ -28,18 +28,10 @@ type enums*: seq[EnumDesc] conflicts*: bool -{.experimental.} - -using - self: var DebugInfo - package, file: string - -{.this: self.} - proc sdbmHash(hash: FilenameHash, c: char): FilenameHash {.inline.} = return FilenameHash(c) + (hash shl 6) + (hash shl 16) - hash -proc sdbmHash(package, file): FilenameHash = +proc sdbmHash(package, file: string): FilenameHash = template `&=`(x, c) = x = sdbmHash(x, c) result = 0 for i in 0..