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:
parent
be9d1280ae
commit
5345c5b130
19 changed files with 5 additions and 1194 deletions
|
|
@ -103,7 +103,7 @@ handlers[HZoneJoinReq] = proc(client: PClient; buffer: PBuffer) =
|
|||
|
||||
|
||||
when true:
|
||||
import parseopt, matchers, os, json
|
||||
import parseopt, os, json
|
||||
|
||||
|
||||
if enetInit() != 0:
|
||||
|
|
|
|||
|
|
@ -157,7 +157,7 @@ proc poll*(timeout: int = 250) =
|
|||
c.outputBuf.flush()
|
||||
|
||||
when true:
|
||||
import parseopt, matchers, strutils
|
||||
import parseopt, strutils
|
||||
var cfgFile = "dirserver_settings.json"
|
||||
for kind, key, val in getOpt():
|
||||
case kind
|
||||
|
|
|
|||
|
|
@ -142,7 +142,7 @@ proc poll*(timeout: int = 250) =
|
|||
c.outputBuf.flush()
|
||||
|
||||
when true:
|
||||
import parseopt, matchers, strutils
|
||||
import parseopt, strutils
|
||||
var zoneCfgFile = "./server_settings.json"
|
||||
for kind, key, val in getOpt():
|
||||
case kind
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
||||
|
|
@ -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()
|
||||
|
|
@ -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()
|
||||
|
||||
|
||||
|
|
@ -4,7 +4,6 @@ import parseutils
|
|||
import unicode
|
||||
import math
|
||||
import fenv
|
||||
#import unsigned
|
||||
import pegs
|
||||
import streams
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue