Remove deprecated stuff from stdlib (#14699)
* update to the latest Jester * remove deprecated procs from some stdlib modules * 'criterion' is not maintained anymore and relies on obsolete stuff
This commit is contained in:
parent
8619534293
commit
e7f280bd26
41 changed files with 155 additions and 519 deletions
|
|
@ -233,22 +233,6 @@ proc createNativeSocket*(domain: Domain = AF_INET,
|
|||
## by child processes.
|
||||
createNativeSocket(toInt(domain), toInt(sockType), toInt(protocol), inheritable)
|
||||
|
||||
proc newNativeSocket*(domain: Domain = AF_INET,
|
||||
sockType: SockType = SOCK_STREAM,
|
||||
protocol: Protocol = IPPROTO_TCP): SocketHandle
|
||||
{.deprecated: "deprecated since v0.18.0; use 'createNativeSocket' instead".} =
|
||||
## Creates a new socket; returns `osInvalidSocket` if an error occurs.
|
||||
createNativeSocket(domain, sockType, protocol)
|
||||
|
||||
proc newNativeSocket*(domain: cint, sockType: cint,
|
||||
protocol: cint): SocketHandle
|
||||
{.deprecated: "deprecated since v0.18.0; use 'createNativeSocket' instead".} =
|
||||
## Creates a new socket; returns `osInvalidSocket` if an error occurs.
|
||||
##
|
||||
## Use this overload if one of the enums specified above does
|
||||
## not contain what you need.
|
||||
createNativeSocket(domain, sockType, protocol)
|
||||
|
||||
proc bindAddr*(socket: SocketHandle, name: ptr SockAddr,
|
||||
namelen: SockLen): cint =
|
||||
result = bindSocket(socket, name, namelen)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue