summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJuan Carlos <juancarlospaco@gmail.com>2022-12-08 11:26:58 -0300
committerGitHub <noreply@github.com>2022-12-08 15:26:58 +0100
commitf8e64d879cba1a035eec699fa41007b8a5a96913 (patch)
treec07ecd2b4f98082e2aaedcd15929d69e6ba1c9ad
parent0a1d4ba8427854306b89f4e91ed7902fb23adafb (diff)
downloadNim-f8e64d879cba1a035eec699fa41007b8a5a96913.tar.gz
Remove deprecated rightSize (#21011)
* Remove deprecated rightSize nop

* Remove deprecated rightSize nop
-rw-r--r--changelog.md2
-rw-r--r--lib/pure/collections/hashcommon.nim10
2 files changed, 2 insertions, 10 deletions
diff --git a/changelog.md b/changelog.md
index 9ce4b2294..8efb7200c 100644
--- a/changelog.md
+++ b/changelog.md
@@ -206,6 +206,8 @@
 - Removed deprecated `` httpcore.`==` ``.
 - 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 `tables.rightSize`.
+
 
 - Removed deprecated `posix.CLONE_STOPPED`.
 
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