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:
parent
ce0552c100
commit
bf0e1c696f
13 changed files with 67 additions and 68 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue