mirror of
https://github.com/espressif/openthread.git
synced 2026-07-28 22:57:47 +00:00
[Timer] Remove unused HoursToMsec() and MsecToHours() (#1947)
This commit is contained in:
@@ -233,22 +233,6 @@ public:
|
||||
*/
|
||||
static uint32_t MsecToSec(uint32_t aMilliseconds) { return aMilliseconds / 1000u; }
|
||||
|
||||
/**
|
||||
* This static method returns the number of milliseconds given hours.
|
||||
*
|
||||
* @returns The number of milliseconds.
|
||||
*
|
||||
*/
|
||||
static uint32_t HoursToMsec(uint32_t aHours) { return SecToMsec(aHours * 3600u); }
|
||||
|
||||
/**
|
||||
* This static method returns the number of hours given milliseconds.
|
||||
*
|
||||
* @returns The number of hours.
|
||||
*
|
||||
*/
|
||||
static uint32_t MsecToHours(uint32_t aMilliseconds) { return MsecToSec(aMilliseconds / 3600u); }
|
||||
|
||||
private:
|
||||
/**
|
||||
* This method indicates if the fire time of this timer is strictly before the fire time of a second given timer.
|
||||
|
||||
Reference in New Issue
Block a user