Skip to content
Snippets Groups Projects
Commit e711c2ca authored by Tristan Matthews's avatar Tristan Matthews
Browse files

* #8968: history: removed unused method

parent b8dedfde
Branches
Tags
No related merge requests found
...@@ -40,23 +40,11 @@ ...@@ -40,23 +40,11 @@
#include "logger.h" #include "logger.h"
#include "call.h" #include "call.h"
namespace {
int oldestAllowed(int days)
{
time_t currentTimestamp;
time(&currentTimestamp);
// Number of seconds in one day: 60 sec/min x 60 min/hr x 24hr/day
static const int DAY_UNIX_TIMESTAMP = 60 * 60 * 24;
return static_cast<int>(currentTimestamp) - (days * DAY_UNIX_TIMESTAMP);
}
using std::map; using std::map;
using std::string; using std::string;
using std::vector; using std::vector;
}
History::History() : History::History() : items_(), path_("")
items_(), path_("")
{} {}
bool History::load(int limit) bool History::load(int limit)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment