[backport] remove 'CountTable.mget' (#13355)
It didn't work, and it was an oversight to be included in v1.0.
This commit is contained in:
parent
36d1ad39d0
commit
78b15de304
2 changed files with 9 additions and 17 deletions
|
|
@ -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``.
|
||||
##
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue