Code Cleanup

- Marked legacy items, formatting cleanup.
This commit is contained in:
Paul Beckingham 2014-07-05 09:39:26 -04:00
parent 4dd57a01bb
commit 5da1d4471e
2 changed files with 9 additions and 2 deletions

View file

@ -166,7 +166,12 @@ std::string taskDifferences (const Task& before, const Task& after)
}
////////////////////////////////////////////////////////////////////////////////
std::string taskInfoDifferences (const Task& before, const Task& after, const std::string& dateformat, long& last_timestamp, const long current_timestamp)
std::string taskInfoDifferences (
const Task& before,
const Task& after,
const std::string& dateformat,
long& last_timestamp,
const long current_timestamp)
{
// Attributes are all there is, so figure the different attribute names
// between before and after.

View file

@ -88,6 +88,8 @@ std::string legacyCheckForDeprecatedVariables ()
std::map <std::string, std::string>::const_iterator it;
for (it = context.config.begin (); it != context.config.end (); ++it)
{
// 2014-07-04: report.*.limit removed.
// report.*.annotations
if (it->first.length () > 19 &&
it->first.substr (0, 7) == "report." &&
@ -166,7 +168,7 @@ void legacyAttributeMap (std::string& name)
////////////////////////////////////////////////////////////////////////////////
void legacyValueMap (const std::string& name, std::string& value)
{
// One-time initialization value mapping.
// 2014-07-03: One-time initialization value mapping.
static std::map <std::string, std::string> mapping;
if (mapping.size () == 0)
{