TCPSocket: Remove deprecated contructor with open

Default constructor and separate open call should be used instead.
pull/12685/head
Kimmo Vaisanen 2020-03-24 12:32:38 +02:00
parent 2cfee7be71
commit 4918bc6aad
1 changed files with 0 additions and 19 deletions

View File

@ -37,25 +37,6 @@ public:
*/
TCPSocket();
/** Create a socket on a network interface
*
* Creates and opens a socket on the network stack of the given
* network interface.
*
* @param stack Network stack as target for socket
*
* @deprecated since mbed-os-5.11
*/
template <typename S>
MBED_DEPRECATED_SINCE("mbed-os-5.11",
"The TCPSocket(S *stack) constructor is deprecated."
"It discards the open() call return value."
"Use another constructor and call open() explicitly, instead.")
TCPSocket(S *stack) : TCPSocket()
{
open(stack);
}
/** Override multicast functions to return error for TCP
*
*/