mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Code Cleanup
- Marked legacy items, formatting cleanup.
This commit is contained in:
parent
4dd57a01bb
commit
5da1d4471e
2 changed files with 9 additions and 2 deletions
|
@ -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
|
// Attributes are all there is, so figure the different attribute names
|
||||||
// between before and after.
|
// between before and after.
|
||||||
|
|
|
@ -88,6 +88,8 @@ std::string legacyCheckForDeprecatedVariables ()
|
||||||
std::map <std::string, std::string>::const_iterator it;
|
std::map <std::string, std::string>::const_iterator it;
|
||||||
for (it = context.config.begin (); it != context.config.end (); ++it)
|
for (it = context.config.begin (); it != context.config.end (); ++it)
|
||||||
{
|
{
|
||||||
|
// 2014-07-04: report.*.limit removed.
|
||||||
|
|
||||||
// report.*.annotations
|
// report.*.annotations
|
||||||
if (it->first.length () > 19 &&
|
if (it->first.length () > 19 &&
|
||||||
it->first.substr (0, 7) == "report." &&
|
it->first.substr (0, 7) == "report." &&
|
||||||
|
@ -166,7 +168,7 @@ void legacyAttributeMap (std::string& name)
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
void legacyValueMap (const std::string& name, std::string& value)
|
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;
|
static std::map <std::string, std::string> mapping;
|
||||||
if (mapping.size () == 0)
|
if (mapping.size () == 0)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue