mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-04 20:17:42 +00:00
Remove noSideEffect pragmas (#15143)
These don't seem to make sense for the purpose of the procs and lead to errors when the `--experimental:strictFuncs` feature is enabled. See also https://github.com/nim-lang/Nim/issues/15142
This commit is contained in:
@@ -232,7 +232,7 @@ proc enlarge(t: StringTableRef) =
|
||||
swap(t.data, n)
|
||||
|
||||
proc `[]=`*(t: StringTableRef, key, val: string) {.
|
||||
rtlFunc, extern: "nstPut", noSideEffect.} =
|
||||
rtlFunc, extern: "nstPut".} =
|
||||
## Inserts a `(key, value)` pair into `t`.
|
||||
##
|
||||
## See also:
|
||||
|
||||
@@ -334,7 +334,7 @@ proc insert*(father, son: XmlNode, index: int) {.inline.} =
|
||||
else:
|
||||
insert(father.s, son, len(father.s))
|
||||
|
||||
proc delete*(n: XmlNode, i: Natural) {.noSideEffect.} =
|
||||
proc delete*(n: XmlNode, i: Natural) =
|
||||
## Delete the `i`'th child of `n`.
|
||||
##
|
||||
## See also:
|
||||
|
||||
Reference in New Issue
Block a user