summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJuan Carlos <juancarlospaco@gmail.com>2020-10-01 07:39:50 -0300
committerGitHub <noreply@github.com>2020-10-01 12:39:50 +0200
commit79a92da8efdb895ba5762ca9ed0471a3a5846068 (patch)
treef7ed48fa3c04bfc8ec688efd1025312458b1197a
parent4e7d383f29be22c9cec103cf678422a23b108a37 (diff)
downloadNim-79a92da8efdb895ba5762ca9ed0471a3a5846068.tar.gz
Clean out (#15440)
-rw-r--r--changelog.md2
-rw-r--r--lib/pure/sugar.nim4
2 files changed, 1 insertions, 5 deletions
diff --git a/changelog.md b/changelog.md
index 474f1eae1..d610025d7 100644
--- a/changelog.md
+++ b/changelog.md
@@ -156,7 +156,7 @@
   Proc `rightSize` for Tables and HashSets is deprecated, as it is not needed anymore.
   `CountTable.inc` takes `val: int` again not `val: Positive`; I.e. it can "count down" again.
 - Removed deprecated symbols from `macros` module, deprecated as far back as `0.15`.
-
+- Removed `sugar.distinctBase`, deprecated since `0.19`.
 - Export `asyncdispatch.PDispatcher.handles` so that an external library can register them.
 
 - Added `deques.toDeque`, which creates a deque from an openArray. The usage is
diff --git a/lib/pure/sugar.nim b/lib/pure/sugar.nim
index 8bfc7b7ff..49934b9bb 100644
--- a/lib/pure/sugar.nim
+++ b/lib/pure/sugar.nim
@@ -186,10 +186,6 @@ proc freshIdentNodes(ast: NimNode): NimNode =
         result.add inspect(child)
   result = inspect(ast)
 
-template distinctBase*(T: typedesc): typedesc {.deprecated: "use distinctBase from typetraits instead".} =
-  ## reverses ``type T = distinct A``; works recursively.
-  typetraits.distinctBase(T)
-
 macro capture*(locals: varargs[typed], body: untyped): untyped {.since: (1, 1).} =
   ## Useful when creating a closure in a loop to capture some local loop variables
   ## by their current iteration values. Example: