mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-27 10:07:19 +02:00
Code Cleanup
- Eliminated obsolete Arguments.h, Arguments.cpp.
This commit is contained in:
parent
ab8a6d9e88
commit
0c08b29e48
24 changed files with 74 additions and 1976 deletions
|
@ -115,11 +115,11 @@ const std::string DOM::get (const std::string& name)
|
|||
name.substr (0, 8) == "context.")
|
||||
{
|
||||
if (name == "context.program")
|
||||
return /*_cache[name] =*/ context.args[0]._first;
|
||||
return /*_cache[name] =*/ context.a3[0]._raw;
|
||||
|
||||
else if (name == "context.args")
|
||||
{
|
||||
return /*_cache[name] =*/ context.args.combine ();
|
||||
return /*_cache[name] =*/ context.a3.combine ();
|
||||
}
|
||||
else if (name == "context.width")
|
||||
{
|
||||
|
@ -238,7 +238,7 @@ const std::string DOM::get (const std::string& name, const Task& task)
|
|||
return /*_cache[name] =*/ copy_name;
|
||||
|
||||
// <attr>
|
||||
else if (Arguments::is_attribute (name, canonical))
|
||||
else if (A3::is_attribute (name, canonical))
|
||||
return task.get (canonical);
|
||||
|
||||
// <id>.<name>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue