diff --git a/src/include/platform/internal/GenericPlatformManagerImpl.cpp b/src/include/platform/internal/GenericPlatformManagerImpl.cpp index 00f9767abb0e53..3be68fd23586d9 100644 --- a/src/include/platform/internal/GenericPlatformManagerImpl.cpp +++ b/src/include/platform/internal/GenericPlatformManagerImpl.cpp @@ -257,7 +257,7 @@ void GenericPlatformManagerImpl::_DispatchEvent(const ChipDeviceEvent // TODO: make this configurable #if CHIP_PROGRESS_LOGGING - uint32_t delta = (static_cast(System::SystemClock().GetMonotonicMicroseconds() - startUS) / 1000); + uint32_t delta = static_cast((System::SystemClock().GetMonotonicMicroseconds() - startUS) / 1000); if (delta > 100) { ChipLogError(DeviceLayer, "Long dispatch time: %" PRIu32 " ms, for event type %d", delta, event->Type); diff --git a/src/system/SystemClock.h b/src/system/SystemClock.h index 647f7c9b3af8e1..f9c12bf5e371de 100644 --- a/src/system/SystemClock.h +++ b/src/system/SystemClock.h @@ -112,16 +112,6 @@ namespace Clock { using MonotonicMicroseconds = ClockBase::MonotonicMicroseconds; using MonotonicMilliseconds = ClockBase::MonotonicMicroseconds; -// DO NOT USE - Temporary backward compatibility functions. TODO: remove. -inline MonotonicMicroseconds GetMonotonicMicroseconds() -{ - return SystemClock().GetMonotonicMicroseconds(); -} -inline MonotonicMilliseconds GetMonotonicMilliseconds() -{ - return SystemClock().GetMonotonicMilliseconds(); -} - /** * Compares two time values and returns true if the first value is earlier than the second value. *