Skip to content

Commit 272c42d

Browse files
authored
Merge pull request #12527 from rajkan01/atcmd_remove_deprecated
Remove the deprecated ATCmdParser APIs.
2 parents 9ad292a + 72d2f40 commit 272c42d

File tree

1 file changed

+0
-46
lines changed

1 file changed

+0
-46
lines changed

platform/ATCmdParser.h

-46
Original file line numberDiff line numberDiff line change
@@ -142,23 +142,6 @@ class ATCmdParser : private NonCopyable<ATCmdParser> {
142142
_timeout = timeout;
143143
}
144144

145-
/**
146-
* For backward compatibility.
147-
* @deprecated Do not use this function. This function has been replaced with set_timeout for consistency.
148-
*
149-
* Please use set_timeout(int) API only from now on.
150-
* Allows timeout to be changed between commands
151-
*
152-
* @param timeout ATCmdParser APIs (read/write/send/recv ..etc) throw an
153-
* error if no response is received in `timeout` duration
154-
*
155-
*/
156-
MBED_DEPRECATED_SINCE("mbed-os-5.5.0", "Replaced with set_timeout for consistency")
157-
void setTimeout(int timeout)
158-
{
159-
set_timeout(timeout);
160-
}
161-
162145
/**
163146
* Sets string of characters to use as line delimiters
164147
*
@@ -170,21 +153,6 @@ class ATCmdParser : private NonCopyable<ATCmdParser> {
170153
_output_delim_size = strlen(output_delimiter);
171154
}
172155

173-
/**
174-
* For backwards compatibility.
175-
* @deprecated Do not use this function. This function has been replaced with set_delimiter for consistency.
176-
*
177-
* Please use set_delimiter(const char *) API only from now on.
178-
* Sets string of characters to use as line delimiters
179-
*
180-
* @param output_delimiter string of characters to use as line delimiters
181-
*/
182-
MBED_DEPRECATED_SINCE("mbed-os-5.5.0", "Replaced with set_delimiter for consistency")
183-
void setDelimiter(const char *output_delimiter)
184-
{
185-
set_delimiter(output_delimiter);
186-
}
187-
188156
/**
189157
* Allows traces from modem to be turned on or off
190158
*
@@ -195,20 +163,6 @@ class ATCmdParser : private NonCopyable<ATCmdParser> {
195163
_dbg_on = (on) ? 1 : 0;
196164
}
197165

198-
/**
199-
* For backward compatibility.
200-
* @deprecated Do not use this function. This function has been replaced with debug_on for consistency.
201-
*
202-
* Allows traces from modem to be turned on or off
203-
*
204-
* @param on Set as 1 to turn on traces and 0 to disable traces.
205-
*/
206-
MBED_DEPRECATED_SINCE("mbed-os-5.5.0", "Replaced with debug_on for consistency")
207-
void debugOn(uint8_t on)
208-
{
209-
debug_on(on);
210-
}
211-
212166
/**
213167
* Sends an AT command
214168
*

0 commit comments

Comments
 (0)