Skip to content

Commit

Permalink
remove misleading slimsystem deprecated warnings (nim-lang#21156)
Browse files Browse the repository at this point in the history
  • Loading branch information
metagn authored Dec 22, 2022
1 parent 314a244 commit 37daed3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
2 changes: 0 additions & 2 deletions lib/std/formatfloat.nim
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@

when defined(nimPreviewSlimSystem):
import std/assertions
else:
{.deprecated: "formatfloat is about to move out of system; use `-d:nimPreviewSlimSystem` and import `std/formatfloat`".}

proc c_memcpy(a, b: pointer, size: csize_t): pointer {.importc: "memcpy", header: "<string.h>", discardable.}

Expand Down
3 changes: 0 additions & 3 deletions lib/system.nim
Original file line number Diff line number Diff line change
Expand Up @@ -1630,7 +1630,6 @@ template newException*(exceptn: typedesc, message: string;
(ref exceptn)(msg: message, parent: parentException)

when not defined(nimPreviewSlimSystem):
{.deprecated: "assertions is about to move out of system; use `-d:nimPreviewSlimSystem` and import `std/assertions`".}
import std/assertions
export assertions

Expand Down Expand Up @@ -2068,7 +2067,6 @@ when not defined(js):
when hostOS != "standalone":
include system/threadimpl
when not defined(nimPreviewSlimSystem):
{.deprecated: "threads is about to move out of system; use `-d:nimPreviewSlimSystem` and import `std/typedthreads`".}
import std/typedthreads
export typedthreads

Expand Down Expand Up @@ -2782,7 +2780,6 @@ when notJSnotNims:
releaseSys echoLock

when not defined(nimPreviewSlimSystem):
{.deprecated: "io is about to move out of system; use `-d:nimPreviewSlimSystem` and import `std/syncio`".}
import std/syncio
export syncio

Expand Down

0 comments on commit 37daed3

Please sign in to comment.