Remove deprecated rightSize (#21011)
* Remove deprecated rightSize nop * Remove deprecated rightSize nop
This commit is contained in:
parent
0a1d4ba842
commit
f8e64d879c
2 changed files with 2 additions and 10 deletions
|
|
@ -206,6 +206,8 @@
|
||||||
- Removed deprecated `` httpcore.`==` ``.
|
- Removed deprecated `` httpcore.`==` ``.
|
||||||
- Removed deprecated `std/posix.CMSG_SPACE` and `std/posix.CMSG_LEN` that takes wrong argument types.
|
- Removed deprecated `std/posix.CMSG_SPACE` and `std/posix.CMSG_LEN` that takes wrong argument types.
|
||||||
- Removed deprecated `osproc.poDemon`, symbol with typo.
|
- Removed deprecated `osproc.poDemon`, symbol with typo.
|
||||||
|
- Removed deprecated `tables.rightSize`.
|
||||||
|
|
||||||
|
|
||||||
- Removed deprecated `posix.CLONE_STOPPED`.
|
- Removed deprecated `posix.CLONE_STOPPED`.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -38,16 +38,6 @@ proc slotsNeeded(count: Natural): int {.inline.} =
|
||||||
# Make sure to synchronize with `mustRehash` above
|
# Make sure to synchronize with `mustRehash` above
|
||||||
result = nextPowerOfTwo(count * 3 div 2 + 4)
|
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.} =
|
template rawGetKnownHCImpl() {.dirty.} =
|
||||||
if t.dataLen == 0:
|
if t.dataLen == 0:
|
||||||
return -1
|
return -1
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue