DOM: Dead code removal

This commit is contained in:
Paul Beckingham 2015-07-17 15:16:18 -04:00
parent 4212e27081
commit 83057293a9
2 changed files with 0 additions and 30 deletions

View file

@ -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: // DOM Supported References:
// rc.<name> // 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);
}
////////////////////////////////////////////////////////////////////////////////

View file

@ -38,10 +38,8 @@ public:
DOM (); DOM ();
~DOM (); ~DOM ();
const std::vector <std::string> get_references () const;
bool get (const std::string&, Variant&); bool get (const std::string&, Variant&);
bool get (const std::string&, const Task&, Variant&); bool get (const std::string&, const Task&, Variant&);
void set (const std::string&, const Variant&);
private: private:
}; };