mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +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)
|
||||
{
|
||||
|
|
|
@ -69,7 +69,6 @@ bool expandIntervalHint (const std::string&, Range&);
|
|||
std::string jsonFromIntervals (const std::vector <Interval>&);
|
||||
Palette createPalette (const Rules&);
|
||||
std::map <std::string, Color> createTagColorMap (const Rules&, Palette&, const std::vector <Interval>&);
|
||||
int quantizeTo15Minutes (const int);
|
||||
int quantizeToNMinutes (const int, const int);
|
||||
bool dayIsHoliday (const Rules&, const Datetime&);
|
||||
bool findHint (const CLI&, const std::string&);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue