helper: Removed obsolete quantizeTo15Minutes

This commit is contained in:
Paul Beckingham 2016-06-30 17:17:33 -04:00
parent 53d47106b4
commit 7bb05f1d87
2 changed files with 0 additions and 17 deletions

View file

@ -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)
{

View file

@ -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&);