summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJuan Carlos <juancarlospaco@gmail.com>2020-06-30 11:29:53 -0300
committerGitHub <noreply@github.com>2020-06-30 16:29:53 +0200
commita519f3b03878e8525a26d726921a58fed6ec94a0 (patch)
treee165832111de56c9d64e87a65b991b9b944dbadc
parent56b3d422b014b42c6367fa56916cfd9851884506 (diff)
downloadNim-a519f3b03878e8525a26d726921a58fed6ec94a0.tar.gz
Removed asyncdispatch.newAsyncNativeSocket, was deprecated since 0.18 (#14854)
Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
-rw-r--r--changelog.md1
-rw-r--r--lib/pure/asyncdispatch.nim10
2 files changed, 1 insertions, 10 deletions
diff --git a/changelog.md b/changelog.md
index 5f10c5c19..35c701a8a 100644
--- a/changelog.md
+++ b/changelog.md
@@ -185,6 +185,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.
+- Removed `asyncdispatch.newAsyncNativeSocket`, was deprecated since `0.18`.
 - Remove `dom.releaseEvents` and `dom.captureEvents`, was deprecated.
 
 ## Compiler changes
diff --git a/lib/pure/asyncdispatch.nim b/lib/pure/asyncdispatch.nim
index a0bc96e72..2ade9065f 100644
--- a/lib/pure/asyncdispatch.nim
+++ b/lib/pure/asyncdispatch.nim
@@ -1640,16 +1640,6 @@ proc createAsyncNativeSocket*(domain: Domain = Domain.AF_INET,
                               inheritable = defined(nimInheritHandles)): AsyncFD =
   createAsyncNativeSocketImpl(domain, sockType, protocol, inheritable)
 
-proc newAsyncNativeSocket*(domain: cint, sockType: cint,
-    protocol: cint): AsyncFD {.deprecated: "use createAsyncNativeSocket instead".} =
-  createAsyncNativeSocketImpl(domain, sockType, protocol)
-
-proc newAsyncNativeSocket*(domain: Domain = Domain.AF_INET,
-                           sockType: SockType = SOCK_STREAM,
-                           protocol: Protocol = IPPROTO_TCP): AsyncFD
-                           {.deprecated: "use createAsyncNativeSocket instead".} =
-  createAsyncNativeSocketImpl(domain, sockType, protocol)
-
 when defined(windows) or defined(nimdoc):
   proc bindToDomain(handle: SocketHandle, domain: Domain) =
     # Extracted into a separate proc, because connect() on Windows requires