remove deprecated modules (#10215)

* removed from `compiler`:
    * lists (deprecated 2 years ago)

* removed from `lib` (all deprecated 3 years ago):
    * ssl
    * matchers
    * httpserver

* removed from `lib/deprecated`:
    * unsigned
    * actors (and three accompanying tests)
    * parseurl

* moved to `lib/deprecated`:
    * securehash (the reason for not directly removing - it was deprecated (only) one year ago)
This commit is contained in:
Miran 2019-01-07 10:37:49 +01:00 • committed by GitHub
commit 5345c5b130
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
19 changed files with 5 additions and 1194 deletions

View file

@ -1,13 +0,0 @@
discard """
outputsub: "150"
"""
import actors
var
pool: ActorPool[int, void]
createActorPool(pool)
for i in 0 ..< 300:
pool.spawn(i, proc (x: int) {.thread.} = echo x)
pool.join()

View file

@ -1,25 +0,0 @@
discard """
output: "1"
"""
import actors
type
some_type {.pure, final.} = object
bla: int
proc thread_proc(input: some_type): some_type {.thread.} =
result.bla = 1
proc main() =
var actorPool: ActorPool[some_type, some_type]
createActorPool(actorPool, 1)
var some_data: some_type
var inchannel = spawn(actorPool, some_data, thread_proc)
var recv_data = ^inchannel
close(inchannel[])
echo recv_data.bla
main()

View file

@ -1,20 +0,0 @@
discard """
disabled: yes
outputsub: "0"
"""
import actors
var
a: TActorPool[int, void]
createActorPool(a)
proc task(i: int) {.thread.} =
echo i
if i != 0: a.spawn (i-1, task)
# count from 9 till 0 and check 0 is somewhere in the output
a.spawn(9, task)
a.join()