Skip to content

Commit

Permalink
Merge pull request #12527 from rajkan01/atcmd_remove_deprecated
Browse files Browse the repository at this point in the history
Remove the deprecated ATCmdParser APIs.
  • Loading branch information
0xc0170 authored Feb 28, 2020
2 parents 9ad292a + 72d2f40 commit 272c42d
Showing 1 changed file with 0 additions and 46 deletions.
46 changes: 0 additions & 46 deletions platform/ATCmdParser.h
Original file line number Diff line number Diff line change
Expand Up @@ -142,23 +142,6 @@ class ATCmdParser : private NonCopyable<ATCmdParser> {
_timeout = timeout;
}

/**
* For backward compatibility.
* @deprecated Do not use this function. This function has been replaced with set_timeout for consistency.
*
* Please use set_timeout(int) API only from now on.
* Allows timeout to be changed between commands
*
* @param timeout ATCmdParser APIs (read/write/send/recv ..etc) throw an
* error if no response is received in `timeout` duration
*
*/
MBED_DEPRECATED_SINCE("mbed-os-5.5.0", "Replaced with set_timeout for consistency")
void setTimeout(int timeout)
{
set_timeout(timeout);
}

/**
* Sets string of characters to use as line delimiters
*
Expand All @@ -170,21 +153,6 @@ class ATCmdParser : private NonCopyable<ATCmdParser> {
_output_delim_size = strlen(output_delimiter);
}

/**
* For backwards compatibility.
* @deprecated Do not use this function. This function has been replaced with set_delimiter for consistency.
*
* Please use set_delimiter(const char *) API only from now on.
* Sets string of characters to use as line delimiters
*
* @param output_delimiter string of characters to use as line delimiters
*/
MBED_DEPRECATED_SINCE("mbed-os-5.5.0", "Replaced with set_delimiter for consistency")
void setDelimiter(const char *output_delimiter)
{
set_delimiter(output_delimiter);
}

/**
* Allows traces from modem to be turned on or off
*
Expand All @@ -195,20 +163,6 @@ class ATCmdParser : private NonCopyable<ATCmdParser> {
_dbg_on = (on) ? 1 : 0;
}

/**
* For backward compatibility.
* @deprecated Do not use this function. This function has been replaced with debug_on for consistency.
*
* Allows traces from modem to be turned on or off
*
* @param on Set as 1 to turn on traces and 0 to disable traces.
*/
MBED_DEPRECATED_SINCE("mbed-os-5.5.0", "Replaced with debug_on for consistency")
void debugOn(uint8_t on)
{
debug_on(on);
}

/**
* Sends an AT command
*
Expand Down

0 comments on commit 272c42d

Please sign in to comment.