mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-28 04:27:20 +02:00
Removed the incomplete support for the Lua extensions.
This commit is contained in:
parent
c7df1f7acc
commit
7db5377d3b
27 changed files with 17 additions and 928 deletions
17
src/DOM.cpp
17
src/DOM.cpp
|
@ -35,13 +35,6 @@
|
|||
#include <DOM.h>
|
||||
#include <cmake.h>
|
||||
|
||||
#ifdef HAVE_LIBLUA
|
||||
extern "C"
|
||||
{
|
||||
#include <lua.h>
|
||||
}
|
||||
#endif
|
||||
|
||||
extern Context context;
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
@ -64,7 +57,6 @@ const std::vector <std::string> DOM::get_references () const
|
|||
refs.push_back ("context.width");
|
||||
refs.push_back ("context.height");
|
||||
refs.push_back ("system.version");
|
||||
refs.push_back ("system.lua.version");
|
||||
refs.push_back ("system.os");
|
||||
|
||||
return refs;
|
||||
|
@ -82,7 +74,6 @@ const std::vector <std::string> DOM::get_references () const
|
|||
// TODO stats.<name> <-- context.stats
|
||||
//
|
||||
// system.version
|
||||
// system.lua.version
|
||||
// system.os
|
||||
const std::string DOM::get (const std::string& name)
|
||||
{
|
||||
|
@ -117,12 +108,6 @@ const std::string DOM::get (const std::string& name)
|
|||
if (name == "system.version")
|
||||
return VERSION;
|
||||
|
||||
#ifdef HAVE_LIBLUA
|
||||
// Lua version number.
|
||||
else if (name == "system.lua.version")
|
||||
return LUA_RELEASE;
|
||||
#endif
|
||||
|
||||
// OS type.
|
||||
else if (name == "system.os")
|
||||
#if defined (DARWIN)
|
||||
|
@ -245,8 +230,6 @@ const std::string DOM::get (const std::string& name, const Task& task)
|
|||
return this->get (name);
|
||||
}
|
||||
|
||||
// TODO Need a context-specific DOM::set. For Lua. Probably.
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
void DOM::set (const std::string& name, const std::string& value)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue