Skip to content

Commit 4918bc6

Browse files
author
Kimmo Vaisanen
committed
TCPSocket: Remove deprecated contructor with open
Default constructor and separate open call should be used instead.
1 parent 2cfee7b commit 4918bc6

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

features/netsocket/TCPSocket.h

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -37,25 +37,6 @@ class TCPSocket : public InternetSocket {
3737
*/
3838
TCPSocket();
3939

40-
/** Create a socket on a network interface
41-
*
42-
* Creates and opens a socket on the network stack of the given
43-
* network interface.
44-
*
45-
* @param stack Network stack as target for socket
46-
*
47-
* @deprecated since mbed-os-5.11
48-
*/
49-
template <typename S>
50-
MBED_DEPRECATED_SINCE("mbed-os-5.11",
51-
"The TCPSocket(S *stack) constructor is deprecated."
52-
"It discards the open() call return value."
53-
"Use another constructor and call open() explicitly, instead.")
54-
TCPSocket(S *stack) : TCPSocket()
55-
{
56-
open(stack);
57-
}
58-
5940
/** Override multicast functions to return error for TCP
6041
*
6142
*/

0 commit comments

Comments
 (0)