summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorMiran <narimiran@disroot.org>2020-02-07 20:50:44 +0100
committerGitHub <noreply@github.com>2020-02-07 20:50:44 +0100
commit78b15de3044feb4ac08fd5784714fac4d470e82b (patch)
tree539acb21696715cb42f366c7cd4b524ffe2c9b28 /lib
parent36d1ad39d08d858dd335efa8eaec706eee1a9bff (diff)
downloadNim-78b15de3044feb4ac08fd5784714fac4d470e82b.tar.gz
[backport] remove 'CountTable.mget' (#13355)
It didn't work, and it was an oversight to be included in v1.0.
Diffstat (limited to 'lib')
-rw-r--r--lib/pure/collections/tables.nim13
1 files changed, 0 insertions, 13 deletions
diff --git a/lib/pure/collections/tables.nim b/lib/pure/collections/tables.nim
index 20fe12fc8..2cfb6c2c6 100644
--- a/lib/pure/collections/tables.nim
+++ b/lib/pure/collections/tables.nim
@@ -2304,13 +2304,6 @@ proc `[]`*[A](t: CountTable[A], key: A): int =
   assert(not t.isSorted, "CountTable must not be used after sorting")
   ctget(t, key, 0)
 
-proc mget*[A](t: var CountTable[A], key: A): var int =
-  ## Retrieves the value at ``t[key]``. The value can be modified.
-  ##
-  ## If ``key`` is not in ``t``, the ``KeyError`` exception is raised.
-  assert(not t.isSorted, "CountTable must not be used after sorting")
-  get(t, key)
-
 proc `[]=`*[A](t: var CountTable[A], key: A, val: int) =
   ## Inserts a ``(key, value)`` pair into ``t``.
   ##
@@ -2674,12 +2667,6 @@ proc `[]`*[A](t: CountTableRef[A], key: A): int =
   ##   is in the table
   result = t[][key]
 
-proc mget*[A](t: CountTableRef[A], key: A): var int =
-  ## Retrieves the value at ``t[key]``. The value can be modified.
-  ##
-  ## If ``key`` is not in ``t``, the ``KeyError`` exception is raised.
-  mget(t[], key)
-
 proc `[]=`*[A](t: CountTableRef[A], key: A, val: int) =
   ## Inserts a ``(key, value)`` pair into ``t``.
   ##