remove outdated codes (#17140)
* remove unnecessary when statement * remove outdated codes
This commit is contained in:
parent
32bf10126c
commit
f26c25737c
2 changed files with 0 additions and 2 deletions
|
|
@ -326,7 +326,6 @@ func distribute*[T](s: seq[T], num: Positive, spread = true): seq[seq[T]] =
|
|||
if num < 2:
|
||||
result = @[s]
|
||||
return
|
||||
let num = int(num) # XXX probably only needed because of .. bug
|
||||
|
||||
# Create the result and calculate the stride size and the remainder if any.
|
||||
result = newSeq[seq[T]](num)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue