Code Cleanup
- Removed obsolete comments and code.
This commit is contained in:
40
src/DOM.cpp
40
src/DOM.cpp
@@ -73,6 +73,7 @@ const std::vector <std::string> DOM::get_references () const
|
|||||||
//
|
//
|
||||||
// system.version
|
// system.version
|
||||||
// system.os
|
// system.os
|
||||||
|
//
|
||||||
const std::string DOM::get (const std::string& name)
|
const std::string DOM::get (const std::string& name)
|
||||||
{
|
{
|
||||||
int len = name.length ();
|
int len = name.length ();
|
||||||
@@ -86,7 +87,7 @@ const std::string DOM::get (const std::string& name)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// context.*
|
// context.*
|
||||||
else if (len > 8 &&
|
if (len > 8 &&
|
||||||
name.substr (0, 8) == "context.")
|
name.substr (0, 8) == "context.")
|
||||||
{
|
{
|
||||||
if (name == "context.program") return context.a3[0]._raw;
|
if (name == "context.program") return context.a3[0]._raw;
|
||||||
@@ -99,7 +100,7 @@ const std::string DOM::get (const std::string& name)
|
|||||||
// TODO stats.<name>
|
// TODO stats.<name>
|
||||||
|
|
||||||
// system. --> Implement locally.
|
// system. --> Implement locally.
|
||||||
else if (len > 7 &&
|
if (len > 7 &&
|
||||||
name.substr (0, 7) == "system.")
|
name.substr (0, 7) == "system.")
|
||||||
{
|
{
|
||||||
// Taskwarrior version number.
|
// Taskwarrior version number.
|
||||||
@@ -143,38 +144,9 @@ const std::string DOM::get (const std::string& name)
|
|||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
// DOM Supported References:
|
// DOM Supported References:
|
||||||
//
|
//
|
||||||
// TODO <id>.{entry,start,end,scheduled,due,until,wait}
|
// <attribute>
|
||||||
// TODO <id>.description
|
// <id>.<attribute>
|
||||||
// TODO <id>.project
|
// <uuid>.<attribute>
|
||||||
// TODO <id>.priority
|
|
||||||
// TODO <id>.parent
|
|
||||||
// TODO <id>.status
|
|
||||||
// TODO <id>.tags
|
|
||||||
// TODO <id>.urgency
|
|
||||||
// TODO <id>.recur
|
|
||||||
// TODO <id>.depends
|
|
||||||
//
|
|
||||||
// TODO <uuid>.{entry,start,end,scheduled,due,until,wait}
|
|
||||||
// TODO <uuid>.description
|
|
||||||
// TODO <uuid>.project
|
|
||||||
// TODO <uuid>.priority
|
|
||||||
// TODO <uuid>.parent
|
|
||||||
// TODO <uuid>.status
|
|
||||||
// TODO <uuid>.tags
|
|
||||||
// TODO <uuid>.urgency
|
|
||||||
// TODO <uuid>.recur
|
|
||||||
// TODO <uuid>.depends
|
|
||||||
//
|
|
||||||
// {entry,start,end,scheduled,due,until,wait}
|
|
||||||
// description
|
|
||||||
// project
|
|
||||||
// priority
|
|
||||||
// parent
|
|
||||||
// status
|
|
||||||
// tags
|
|
||||||
// urgency
|
|
||||||
// recur
|
|
||||||
// depends
|
|
||||||
//
|
//
|
||||||
const std::string DOM::get (const std::string& name, const Task& task)
|
const std::string DOM::get (const std::string& name, const Task& task)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user