From f5fdf506ad82a6478b04e84b7e67df287a4d808f Mon Sep 17 00:00:00 2001 From: Zhanglong Xia Date: Tue, 6 Nov 2018 00:32:37 +0800 Subject: [PATCH] [mac] remove dead code (#3254) --- src/core/mac/mac.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/core/mac/mac.cpp b/src/core/mac/mac.cpp index 45b27c3f1..227839f90 100644 --- a/src/core/mac/mac.cpp +++ b/src/core/mac/mac.cpp @@ -69,12 +69,6 @@ static const otExtendedPanId sExtendedPanidInit = { }; static const char sNetworkNameInit[] = "OpenThread"; -#ifdef _WIN32 -const uint32_t kMinBackoffSum = kMinBackoff + (kUnitBackoffPeriod * OT_RADIO_SYMBOL_TIME * (1 << kMinBE)) / 1000; -const uint32_t kMaxBackoffSum = kMinBackoff + (kUnitBackoffPeriod * OT_RADIO_SYMBOL_TIME * (1 << kMaxBE)) / 1000; -static_assert(kMinBackoffSum > 0, "The min backoff value should be greater than zero!"); -#endif - Mac::Mac(Instance &aInstance) : InstanceLocator(aInstance) , mOperation(kOperationIdle)