diff options
author | Araq <rumpf_a@web.de> | 2019-09-20 20:11:35 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2019-09-21 06:43:37 +0200 |
commit | dea9e38d267c388e51e8cbc34d747b5e012d92b8 (patch) | |
tree | 6c2b2d2e7b005e830c708d923e759f687e31d928 | |
parent | c623ab62cc295f5c553b6e5838c22745a2df9f5d (diff) | |
download | Nim-dea9e38d267c388e51e8cbc34d747b5e012d92b8.tar.gz |
removed the deprecatedGet pragma
-rw-r--r-- | lib/pure/collections/critbits.nim | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/pure/collections/critbits.nim b/lib/pure/collections/critbits.nim index 4dddecd36..a28bb447c 100644 --- a/lib/pure/collections/critbits.nim +++ b/lib/pure/collections/critbits.nim @@ -186,14 +186,13 @@ template get[T](c: CritBitTree[T], key: string): T = n.val -proc `[]`*[T](c: CritBitTree[T], key: string): T {.inline, deprecatedGet.} = +proc `[]`*[T](c: CritBitTree[T], key: string): T {.inline.} = ## retrieves the value at ``c[key]``. If `key` is not in `t`, the ## ``KeyError`` exception is raised. One can check with ``hasKey`` whether ## the key exists. get(c, key) -proc `[]`*[T](c: var CritBitTree[T], key: string): var T {.inline, - deprecatedGet.} = +proc `[]`*[T](c: var CritBitTree[T], key: string): var T {.inline.} = ## retrieves the value at ``c[key]``. The value can be modified. ## If `key` is not in `t`, the ``KeyError`` exception is raised. get(c, key) |