Skip to content

Commit 2cfee7b

Browse files
author
Kimmo Vaisanen
committed
Netsocket: Remove deprecated InternetSocket::attach methods
InternetSocket::sigio should be used instead.
1 parent 5d64e55 commit 2cfee7b

File tree

2 files changed

+0
-32
lines changed

2 files changed

+0
-32
lines changed

features/netsocket/InternetSocket.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -205,11 +205,6 @@ void InternetSocket::sigio(Callback<void()> callback)
205205
core_util_critical_section_exit();
206206
}
207207

208-
void InternetSocket::attach(Callback<void()> callback)
209-
{
210-
sigio(callback);
211-
}
212-
213208
nsapi_error_t InternetSocket::getpeername(SocketAddress *address)
214209
{
215210
if (!_socket) {

features/netsocket/InternetSocket.h

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -124,33 +124,6 @@ class InternetSocket : public Socket {
124124
*/
125125
nsapi_error_t getpeername(SocketAddress *address) override;
126126

127-
/** Register a callback on state change of the socket.
128-
*
129-
* @see Socket::sigio
130-
* @deprecated
131-
* The behavior of Socket::attach differs from other attach functions in
132-
* Mbed OS and has been known to cause confusion. Replaced by Socket::sigio.
133-
*/
134-
MBED_DEPRECATED_SINCE("mbed-os-5.4",
135-
"The behavior of Socket::attach differs from other attach functions in "
136-
"Mbed OS and has been known to cause confusion. Replaced by Socket::sigio.")
137-
void attach(mbed::Callback<void()> func);
138-
139-
/** Register a callback on state change of the socket.
140-
*
141-
* @see Socket::sigio
142-
* @deprecated
143-
* The attach function does not support cv-qualifiers. Replaced by
144-
* attach(callback(obj, method)).
145-
*/
146-
template <typename T, typename M>
147-
MBED_DEPRECATED_SINCE("mbed-os-5.1",
148-
"The attach function does not support cv-qualifiers. Replaced by "
149-
"attach(callback(obj, method)).")
150-
void attach(T *obj, M method)
151-
{
152-
attach(mbed::callback(obj, method));
153-
}
154127

155128
#if !defined(DOXYGEN_ONLY)
156129

0 commit comments

Comments
 (0)