summary refs log tree commit diff stats
path: root/lib/pure/collections
diff options
context:
space:
mode:
authorMiran <narimiran@disroot.org>2019-01-18 07:18:32 +0100
committerGitHub <noreply@github.com>2019-01-18 07:18:32 +0100
commit214f48eae9b6a02d5ba68ddf0b1e6b9a26bddacb (patch)
tree42c44a6631eca1f4ee225a0dafb960d7a7b54db5 /lib/pure/collections
parentcceb28b5eb9bae4f0fc364899858018a1bf480ae (diff)
downloadNim-214f48eae9b6a02d5ba68ddf0b1e6b9a26bddacb.tar.gz
Remove long deprecated stuff (#10332)
Diffstat (limited to 'lib/pure/collections')
-rw-r--r--lib/pure/collections/critbits.nim6
-rw-r--r--lib/pure/collections/intsets.nim6
-rw-r--r--lib/pure/collections/sets.nim7
3 files changed, 0 insertions, 19 deletions
diff --git a/lib/pure/collections/critbits.nim b/lib/pure/collections/critbits.nim
index 1bd13920d..dd91fdb12 100644
--- a/lib/pure/collections/critbits.nim
+++ b/lib/pure/collections/critbits.nim
@@ -202,12 +202,6 @@ proc `[]`*[T](c: var CritBitTree[T], key: string): var T {.inline,
   ## If `key` is not in `t`, the ``KeyError`` exception is raised.
   get(c, key)
 
-proc mget*[T](c: var CritBitTree[T], key: string): var T {.inline, deprecated.} =
-  ## retrieves the value at ``c[key]``. The value can be modified.
-  ## If `key` is not in `t`, the ``KeyError`` exception is raised.
-  ## Use ``[]`` instead.
-  get(c, key)
-
 iterator leaves[T](n: Node[T]): Node[T] =
   if n != nil:
     # XXX actually we could compute the necessary stack size in advance:
diff --git a/lib/pure/collections/intsets.nim b/lib/pure/collections/intsets.nim
index f6d3a3d11..9d7950ea6 100644
--- a/lib/pure/collections/intsets.nim
+++ b/lib/pure/collections/intsets.nim
@@ -357,12 +357,6 @@ proc `$`*(s: IntSet): string =
   ## The `$` operator for int sets.
   dollarImpl()
 
-proc empty*(s: IntSet): bool {.inline, deprecated.} =
-  ## Returns true if `s` is empty. This is safe to call even before
-  ## the set has been initialized with `initIntSet`. Note this never
-  ## worked reliably and so is deprecated.
-  result = s.counter == 0
-
 when isMainModule:
   import sequtils, algorithm
 
diff --git a/lib/pure/collections/sets.nim b/lib/pure/collections/sets.nim
index 07fcfe676..d1f941e92 100644
--- a/lib/pure/collections/sets.nim
+++ b/lib/pure/collections/sets.nim
@@ -191,13 +191,6 @@ proc `[]`*[A](s: var HashSet[A], key: A): var A =
     else:
       raise newException(KeyError, "key not found")
 
-proc mget*[A](s: var HashSet[A], key: A): var A {.deprecated.} =
-  ## returns the element that is actually stored in 's' which has the same
-  ## value as 'key' or raises the ``KeyError`` exception. This is useful
-  ## when one overloaded 'hash' and '==' but still needs reference semantics
-  ## for sharing. Use ``[]`` instead.
-  s[key]
-
 proc contains*[A](s: HashSet[A], key: A): bool =
   ## Returns true iff `key` is in `s`.
   ##