mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-06-26 10:54:28 +02:00
helper: Removed obsolete quantizeTo15Minutes
This commit is contained in:
parent
53d47106b4
commit
7bb05f1d87
2 changed files with 0 additions and 17 deletions
|
@ -280,22 +280,6 @@ std::map <std::string, Color> createTagColorMap (
|
|||
return mapping;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
int quantizeTo15Minutes (const int minutes)
|
||||
{
|
||||
if (minutes == 0 ||
|
||||
minutes == 15 ||
|
||||
minutes == 45 ||
|
||||
minutes == 60)
|
||||
return minutes;
|
||||
|
||||
auto deviation = minutes % 15;
|
||||
if (deviation < 8)
|
||||
return minutes - deviation;
|
||||
|
||||
return minutes + 15 - deviation;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
int quantizeToNMinutes (const int minutes, const int N)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue