Skip to content

Commit

Permalink
Merge pull request ARMmbed#12533 from rajkan01/critseclock_remove_dep…
Browse files Browse the repository at this point in the history
…recated

Remove CriticalSectionLock deprecated APIs
  • Loading branch information
0xc0170 authored Mar 2, 2020
2 parents d52f55e + b3ba090 commit 744889a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 28 deletions.
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

0 comments on commit 744889a

Please sign in to comment.