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

@ -12,8 +12,7 @@
import strutils
proc expandTabs*(s: string, tabSize: int = 8): string {.noSideEffect,
procvar.} =
proc expandTabs*(s: string, tabSize: int = 8): string {.noSideEffect.} =
## Expand tab characters in `s` replacing them by spaces.
##
## The amount of inserted spaces for each tab character is the difference
@ -53,7 +52,7 @@ proc expandTabs*(s: string, tabSize: int = 8): string {.noSideEffect,
proc partition*(s: string, sep: string,
right: bool = false): (string, string, string)
{.noSideEffect, procvar.} =
{.noSideEffect.} =
## Split the string at the first or last occurrence of `sep` into a 3-tuple
##
## Returns a 3 string tuple of (beforeSep, `sep`, afterSep) or
@ -72,7 +71,7 @@ proc partition*(s: string, sep: string,
return if right: ("", "", s) else: (s, "", "")
proc rpartition*(s: string, sep: string): (string, string, string)
{.noSideEffect, procvar.} =
{.noSideEffect.} =
## Split the string at the last occurrence of `sep` into a 3-tuple
##
## Returns a 3 string tuple of (beforeSep, `sep`, afterSep) or