summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/pure/collections/sequtils.nim12
1 files changed, 0 insertions, 12 deletions
diff --git a/lib/pure/collections/sequtils.nim b/lib/pure/collections/sequtils.nim
index 9c33b2eb6..a32060e18 100644
--- a/lib/pure/collections/sequtils.nim
+++ b/lib/pure/collections/sequtils.nim
@@ -157,18 +157,6 @@ func addUnique*[T](s: var seq[T], x: sink T) =
   else:
     s.add x
 
-func addUnique*[T](s: var seq[T], xs: sink seq[T]) =
-  ## Adds any items from `xs` to the container `s` that are not already present.
-  ## Uses `==` to check if the item is already present.
-  runnableExamples:
-    var a = @[1, 2, 3]
-    a.addUnique(@[3, 4])
-    a.addUnique(@[4, 5])
-    assert a == @[1, 2, 3, 4, 5]
-
-  for i in 0..high(xs):
-    addUnique(s, move(xs[i]))
-    
 func count*[T](s: openArray[T], x: T): int =
   ## Returns the number of occurrences of the item `x` in the container `s`.
   ##