diff options
author | Juan Carlos <juancarlospaco@gmail.com> | 2022-12-08 11:26:58 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-08 15:26:58 +0100 |
commit | f8e64d879cba1a035eec699fa41007b8a5a96913 (patch) | |
tree | c07ecd2b4f98082e2aaedcd15929d69e6ba1c9ad /lib/pure/collections/hashcommon.nim | |
parent | 0a1d4ba8427854306b89f4e91ed7902fb23adafb (diff) | |
download | Nim-f8e64d879cba1a035eec699fa41007b8a5a96913.tar.gz |
Remove deprecated rightSize (#21011)
* Remove deprecated rightSize nop * Remove deprecated rightSize nop
Diffstat (limited to 'lib/pure/collections/hashcommon.nim')
-rw-r--r-- | lib/pure/collections/hashcommon.nim | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/lib/pure/collections/hashcommon.nim b/lib/pure/collections/hashcommon.nim index 02312e2dc..8fd4c6e08 100644 --- a/lib/pure/collections/hashcommon.nim +++ b/lib/pure/collections/hashcommon.nim @@ -38,16 +38,6 @@ proc slotsNeeded(count: Natural): int {.inline.} = # Make sure to synchronize with `mustRehash` above result = nextPowerOfTwo(count * 3 div 2 + 4) -proc rightSize*(count: Natural): int {.inline, deprecated: "Deprecated since 1.4.0".} = - ## It is not needed anymore because - ## picking the correct size is done internally. - ## - ## Returns the value of `initialSize` to support `count` items. - ## - ## If more items are expected to be added, simply add that - ## expected extra amount to the parameter before calling this. - result = count - template rawGetKnownHCImpl() {.dirty.} = if t.dataLen == 0: return -1 |