remove deprecated stuff from the stdlib; introduce better deprecation warnings
This commit is contained in:
parent
608017801d
commit
bbb0fd4eb7
54 changed files with 44 additions and 287 deletions
|
|
@ -31,8 +31,6 @@ type
|
|||
SubexError* = object of ValueError ## exception that is raised for
|
||||
## an invalid subex
|
||||
|
||||
{.deprecated: [EInvalidSubex: SubexError].}
|
||||
|
||||
proc raiseInvalidFormat(msg: string) {.noinline.} =
|
||||
raise newException(SubexError, "invalid format string: " & msg)
|
||||
|
||||
|
|
@ -44,7 +42,6 @@ type
|
|||
else:
|
||||
f: cstring
|
||||
num, i, lineLen: int
|
||||
{.deprecated: [TFormatParser: FormatParser].}
|
||||
|
||||
template call(x: untyped): untyped =
|
||||
p.i = i
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue