summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJuan Carlos <juancarlospaco@gmail.com>2020-07-01 18:16:50 -0300
committerGitHub <noreply@github.com>2020-07-01 23:16:50 +0200
commitcbcaf2bbc4c7a818747a27f365c4cd1bf54feedf (patch)
tree34f7fccf2cb283db26d101f93a71c8baf45c8782
parent930a0c999b823ae33cecc765110f10b4eaabfcfb (diff)
downloadNim-cbcaf2bbc4c7a818747a27f365c4cd1bf54feedf.tar.gz
Clean out strutils (#14859)
Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
-rw-r--r--changelog.md1
-rw-r--r--lib/pure/strutils.nim5
2 files changed, 1 insertions, 5 deletions
diff --git a/changelog.md b/changelog.md
index 287bce3da..49e6c23b6 100644
--- a/changelog.md
+++ b/changelog.md
@@ -186,6 +186,7 @@ proc mydiv(a, b): int {.raises: [].} =
 
 - Added the `thiscall` calling convention as specified by Microsoft, mostly for hooking purpose
 - Deprecated `{.unroll.}` pragma, was ignored by the compiler anyways, was a nop.
+- Remove `strutils.isNilOrWhitespace`, was deprecated.
 - Remove `sharedtables.initSharedTable`, was deprecated and produces undefined behavior.
 - Removed `asyncdispatch.newAsyncNativeSocket`, was deprecated since `0.18`.
 - Remove `dom.releaseEvents` and `dom.captureEvents`, was deprecated.
diff --git a/lib/pure/strutils.nim b/lib/pure/strutils.nim
index 1ffc8bf22..32d6ede1e 100644
--- a/lib/pure/strutils.nim
+++ b/lib/pure/strutils.nim
@@ -2935,11 +2935,6 @@ proc isEmptyOrWhitespace*(s: string): bool {.noSideEffect, rtl,
   ## Checks if `s` is empty or consists entirely of whitespace characters.
   result = s.allCharsInSet(Whitespace)
 
-proc isNilOrWhitespace*(s: string): bool {.noSideEffect, rtl,
-    extern: "nsuIsNilOrWhitespace",
-    deprecated: "use isEmptyOrWhitespace instead".} =
-  ## Alias for isEmptyOrWhitespace
-  result = isEmptyOrWhitespace(s)
 
 when isMainModule:
   proc nonStaticTests =