Skip to content

Commit 744889a

Browse files
authored
Merge pull request #12533 from rajkan01/critseclock_remove_deprecated
Remove CriticalSectionLock deprecated APIs
2 parents d52f55e + b3ba090 commit 744889a

File tree

2 files changed

+0
-28
lines changed

2 files changed

+0
-28
lines changed

platform/CriticalSectionLock.h

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -59,24 +59,6 @@ class CriticalSectionLock {
5959

6060
~CriticalSectionLock();
6161

62-
/** Mark the start of a critical section
63-
* @deprecated This function is inconsistent with RAII and is being removed in the future. Replaced by static function CriticalSectionLock::enable.
64-
*
65-
*/
66-
MBED_DEPRECATED_SINCE("mbed-os-5.8",
67-
"This function is inconsistent with RAII and is being removed in the future."
68-
"Replaced by static function CriticalSectionLock::enable.")
69-
void lock();
70-
71-
/** Mark the end of a critical section
72-
* @deprecated This function is inconsistent with RAII and is being removed in the future. Replaced by static function CriticalSectionLock::enable.
73-
*
74-
*/
75-
MBED_DEPRECATED_SINCE("mbed-os-5.8",
76-
"This function is inconsistent with RAII and is being removed in the future."
77-
"Replaced by static function CriticalSectionLock::disable.")
78-
void unlock();
79-
8062
/** Mark the start of a critical section
8163
*/
8264
static void enable();

platform/source/CriticalSectionLock.cpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,6 @@ CriticalSectionLock::~CriticalSectionLock()
3030
core_util_critical_section_exit();
3131
}
3232

33-
void CriticalSectionLock::lock()
34-
{
35-
core_util_critical_section_enter();
36-
}
37-
38-
void CriticalSectionLock::unlock()
39-
{
40-
core_util_critical_section_exit();
41-
}
42-
4333
void CriticalSectionLock::enable()
4434
{
4535
core_util_critical_section_enter();

0 commit comments

Comments
 (0)