Code Cleanup - removed formatTimeDeltaDays

- Removed util.cpp/formatTimeDeltaDays, as it was a replica of
  util.cpp/formatSeconds with a different signature.  Worthless.
This commit is contained in:
Paul Beckingham 2009-06-03 00:58:49 -04:00
parent 9eb68881af
commit 4ede817ead
3 changed files with 4 additions and 55 deletions

View file

@ -512,7 +512,7 @@ std::string handleInfo (TDB& tdb, T& task, Config& conf)
if (created.length ())
{
Date dt (::atoi (created.c_str ()));
formatTimeDeltaDays (age, (time_t) (now - dt));
age = formatSeconds ((time_t) (now - dt));
}
table.addCell (row, 1, entry + " (" + age + ")");
@ -644,7 +644,7 @@ std::string handleReportSummary (TDB& tdb, T& task, Config& conf)
if (counter[i->first])
{
std::string age;
formatTimeDeltaDays (age, (time_t) (sumEntry[i->first] / counter[i->first]));
age = formatSeconds ((time_t) (sumEntry[i->first] / counter[i->first]));
table.addCell (row, 2, age);
}
@ -820,7 +820,7 @@ std::string handleReportNext (TDB& tdb, T& task, Config& conf)
if (created.length ())
{
Date dt (::atoi (created.c_str ()));
formatTimeDeltaDays (age, (time_t) (now - dt));
age = formatSeconds ((time_t) (now - dt));
}
// All criteria match, so add refTask to the output table.
@ -2664,7 +2664,7 @@ std::string handleCustomReport (
if (created.length ())
{
Date dt (::atoi (created.c_str ()));
formatTimeDeltaDays (age, (time_t) (now - dt));
age = formatSeconds ((time_t) (now - dt));
table.addCell (row, columnCount, age);
}
}