Skip to content

Commit 619a5a7

Browse files
author
Kimmo Vaisanen
committed
Netsocket: Remove deprecated constructor with open
Default constructor with separate open call should be used instead.
1 parent 4918bc6 commit 619a5a7

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

features/netsocket/UDPSocket.h

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -38,23 +38,6 @@ class UDPSocket : public InternetDatagramSocket {
3838
*/
3939
UDPSocket();
4040

41-
/** Create and open a socket on the network stack of the given
42-
* network interface.
43-
*
44-
* @tparam S Type of the Network stack.
45-
* @param stack Network stack as target for socket.
46-
* @deprecated since mbed-os-5.11
47-
*/
48-
template <typename S>
49-
MBED_DEPRECATED_SINCE("mbed-os-5.11",
50-
"The UDPSocket(S *stack) constructor is deprecated"
51-
"It discards the open() call return value."
52-
"Use another constructor and call open() explicitly, instead.")
53-
UDPSocket(S *stack) : UDPSocket()
54-
{
55-
open(stack);
56-
}
57-
5841
#if !defined(DOXYGEN_ONLY)
5942

6043
protected:

0 commit comments

Comments
 (0)