Skip to content

Commit cbcaf2b

Browse files
juancarlospacoAraq
andauthored
Clean out strutils (#14859)
Co-authored-by: Andreas Rumpf <[email protected]>
1 parent 930a0c9 commit cbcaf2b

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@ proc mydiv(a, b): int {.raises: [].} =
186186

187187
- Added the `thiscall` calling convention as specified by Microsoft, mostly for hooking purpose
188188
- Deprecated `{.unroll.}` pragma, was ignored by the compiler anyways, was a nop.
189+
- Remove `strutils.isNilOrWhitespace`, was deprecated.
189190
- Remove `sharedtables.initSharedTable`, was deprecated and produces undefined behavior.
190191
- Removed `asyncdispatch.newAsyncNativeSocket`, was deprecated since `0.18`.
191192
- Remove `dom.releaseEvents` and `dom.captureEvents`, was deprecated.

lib/pure/strutils.nim

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2935,11 +2935,6 @@ proc isEmptyOrWhitespace*(s: string): bool {.noSideEffect, rtl,
29352935
## Checks if `s` is empty or consists entirely of whitespace characters.
29362936
result = s.allCharsInSet(Whitespace)
29372937

2938-
proc isNilOrWhitespace*(s: string): bool {.noSideEffect, rtl,
2939-
extern: "nsuIsNilOrWhitespace",
2940-
deprecated: "use isEmptyOrWhitespace instead".} =
2941-
## Alias for isEmptyOrWhitespace
2942-
result = isEmptyOrWhitespace(s)
29432938

29442939
when isMainModule:
29452940
proc nonStaticTests =

0 commit comments

Comments
 (0)