Remove the uses of {.procvar.} pragma (#14359)

This pragma did nothing.

Ref:
- https://github.com/nim-lang/Nim/issues/2172#issuecomment-383276469
- https://github.com/nim-lang/Nim/issues/12975
This commit is contained in:
Kaushal Modi 2020-05-15 17:37:24 -04:00 • committed by GitHub
commit bf0e1c696f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 67 additions and 68 deletions

View file

@ -5,7 +5,7 @@ when defined(windows):
proc syncDownload(url, file: string) =
proc progress(status: DownloadStatus, progress: uint, total: uint,
message: string) {.procvar, gcsafe.} =
message: string) {.gcsafe.} =
echo "Downloading " & url
let t = total.BiggestInt
if t != 0:

View file

@ -418,7 +418,7 @@ proc downloadToFile*(szUrl: string, szFileName: string,
when isMainModule:
proc progress(status: DownloadStatus, progress: uint, progressMax: uint,
message: string) {.procvar,gcsafe.} =
message: string) {.gcsafe.} =
const downset: set[DownloadStatus] = {statusBeginDownloading,
statusDownloading, statusEndDownloading}
if status in downset: