diff --git a/platform/CriticalSectionLock.h b/platform/CriticalSectionLock.h index e1e66f7a64..3f9aa6200c 100644 --- a/platform/CriticalSectionLock.h +++ b/platform/CriticalSectionLock.h @@ -59,24 +59,6 @@ public: ~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(); diff --git a/platform/source/CriticalSectionLock.cpp b/platform/source/CriticalSectionLock.cpp index 61e775ce39..506c073e55 100644 --- a/platform/source/CriticalSectionLock.cpp +++ b/platform/source/CriticalSectionLock.cpp @@ -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();