Skip to content

Remove CriticalSectionLock deprecated APIs #12533

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 2, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 0 additions & 18 deletions platform/CriticalSectionLock.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,24 +59,6 @@ class CriticalSectionLock {

~CriticalSectionLock();

/** Mark the start of a critical section
* @deprecated This function is inconsistent with RAII and is being removed in the future. Replaced by static function CriticalSectionLock::enable.
*
*/
MBED_DEPRECATED_SINCE("mbed-os-5.8",
"This function is inconsistent with RAII and is being removed in the future."
"Replaced by static function CriticalSectionLock::enable.")
void lock();

/** Mark the end of a critical section
* @deprecated This function is inconsistent with RAII and is being removed in the future. Replaced by static function CriticalSectionLock::enable.
*
*/
MBED_DEPRECATED_SINCE("mbed-os-5.8",
"This function is inconsistent with RAII and is being removed in the future."
"Replaced by static function CriticalSectionLock::disable.")
void unlock();

/** Mark the start of a critical section
*/
static void enable();
Expand Down
10 changes: 0 additions & 10 deletions platform/source/CriticalSectionLock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,6 @@ CriticalSectionLock::~CriticalSectionLock()
core_util_critical_section_exit();
}

void CriticalSectionLock::lock()
{
core_util_critical_section_enter();
}

void CriticalSectionLock::unlock()
{
core_util_critical_section_exit();
}

void CriticalSectionLock::enable()
{
core_util_critical_section_enter();
Expand Down