@@ -105,42 +105,6 @@ class SerialBase : private NonCopyable<SerialBase> {
105105 */
106106 void attach (Callback<void ()> func, IrqType type = RxIrq);
107107
108- /* * Attach a member function to call whenever a serial interrupt is generated
109- *
110- * @param obj pointer to the object to call the member function on
111- * @param method pointer to the member function to be called
112- * @param type Which serial interrupt to attach the member function to (Serial::RxIrq for receive, TxIrq for transmit buffer empty)
113- * @deprecated
114- * The attach function does not support cv-qualifiers. Replaced by
115- * attach(callback(obj, method), type).
116- */
117- template <typename T>
118- MBED_DEPRECATED_SINCE (" mbed-os-5.1" ,
119- " The attach function does not support cv-qualifiers. Replaced by "
120- " attach(callback(obj, method), type)." )
121- void attach (T *obj, void (T::*method)(), IrqType type = RxIrq)
122- {
123- attach (callback (obj, method), type);
124- }
125-
126- /* * Attach a member function to call whenever a serial interrupt is generated
127- *
128- * @param obj pointer to the object to call the member function on
129- * @param method pointer to the member function to be called
130- * @param type Which serial interrupt to attach the member function to (Serial::RxIrq for receive, TxIrq for transmit buffer empty)
131- * @deprecated
132- * The attach function does not support cv-qualifiers. Replaced by
133- * attach(callback(obj, method), type).
134- */
135- template <typename T>
136- MBED_DEPRECATED_SINCE (" mbed-os-5.1" ,
137- " The attach function does not support cv-qualifiers. Replaced by "
138- " attach(callback(obj, method), type)." )
139- void attach (T *obj, void (*method)(T *), IrqType type = RxIrq)
140- {
141- attach (callback (obj, method), type);
142- }
143-
144108 /* * Generate a break condition on the serial line
145109 * NOTE: Clear break needs to run at least one frame after set_break is called
146110 */
0 commit comments