Remove deprecated stuff from stdlib (#14699)
* update to the latest Jester * remove deprecated procs from some stdlib modules * 'criterion' is not maintained anymore and relies on obsolete stuff
This commit is contained in:
parent
8619534293
commit
e7f280bd26
41 changed files with 155 additions and 519 deletions
|
|
@ -447,7 +447,7 @@ proc build_help*(expected: seq[Tparameter_specification] = @[],
|
|||
|
||||
# First generate the joined version of input parameters in a list.
|
||||
var
|
||||
seen = initSet[string]()
|
||||
seen = initHashSet[string]()
|
||||
prefixes: seq[string] = @[]
|
||||
helps: seq[string] = @[]
|
||||
for key in keys:
|
||||
|
|
|
|||
|
|
@ -486,7 +486,7 @@ when defined(DebugKeys):
|
|||
activeVehicle.body.setPos mouseToSpace())
|
||||
ingameClient.registerHandler(KeyY, down, proc() =
|
||||
const looloo = ["Asteroid1", "Asteroid2"]
|
||||
addObject(looloo[random(looloo.len)]))
|
||||
addObject(looloo[rand(looloo.len)]))
|
||||
ingameClient.registerHandler(KeyO, down, proc() =
|
||||
if objects.len == 0:
|
||||
echo "Objects is empty"
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@ task "release", "release build":
|
|||
## zip up all the files and such or something useful here
|
||||
|
||||
task "testskel", "create skeleton test dir for testing":
|
||||
let dirname = "test-" & $random(5000)
|
||||
let dirname = "test-" & $rand(5000)
|
||||
removeDir dirName
|
||||
createDir dirName/"data/fnt"
|
||||
copyFile "data/fnt/LiberationMono-Regular", dirName/"data/fnt/LiberationMono-Regular.ttf"
|
||||
|
|
@ -133,7 +133,7 @@ task "download", "download game assets":
|
|||
else: ## this crashes, dunno why
|
||||
var
|
||||
z: TZipArchive
|
||||
destDir = getCurrentDir()/("unzip" & $random(5000))
|
||||
destDir = getCurrentDir()/("unzip" & $rand(5000))
|
||||
if not z.open(path, fmRead):
|
||||
echo "Could not open zip, bad download?"
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue