mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
DOM: Dead code removal
This commit is contained in:
parent
4212e27081
commit
83057293a9
2 changed files with 0 additions and 30 deletions
28
src/DOM.cpp
28
src/DOM.cpp
|
@ -50,17 +50,6 @@ DOM::~DOM ()
|
|||
{
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
const std::vector <std::string> DOM::get_references () const
|
||||
{
|
||||
return {"context.program",
|
||||
"context.args",
|
||||
"context.width",
|
||||
"context.height",
|
||||
"system.version",
|
||||
"system.os"};
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// DOM Supported References:
|
||||
// rc.<name>
|
||||
|
@ -448,20 +437,3 @@ bool DOM::get (const std::string& name, const Task& task, Variant& value)
|
|||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
void DOM::set (const std::string& name, const Variant& value)
|
||||
{
|
||||
int len = name.length ();
|
||||
|
||||
// rc. --> context.config
|
||||
if (len > 3 &&
|
||||
name.substr (0, 3) == "rc.")
|
||||
{
|
||||
context.config.set (name.substr (3), (std::string) value);
|
||||
}
|
||||
|
||||
// Unrecognized --> error.
|
||||
else
|
||||
throw format (STRING_DOM_CANNOT_SET, name);
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue