summaryrefslogtreecommitdiff
path: root/server/src/templateparser.cc
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/templateparser.cc')
-rw-r--r--server/src/templateparser.cc13
1 files changed, 0 insertions, 13 deletions
diff --git a/server/src/templateparser.cc b/server/src/templateparser.cc
index 1fecc20..8874b74 100644
--- a/server/src/templateparser.cc
+++ b/server/src/templateparser.cc
@@ -68,8 +68,6 @@ TemplateParser::TemplateParser(std::string course)
state = UNDEFINED;
t = new Template();
current_macro = NULL;
- current_map = NULL;
- current_luaprogram = NULL;
file = XML"/templates/" + course + ".xml";
@@ -87,17 +85,6 @@ TemplateParser::~TemplateParser()
void TemplateParser::characterData(std::string &data)
{
- /*
- if(state == MAP) {
- assert(current_map); // No map present!
- current_map->attributes["lua"].append(data);
- }
-
- if(state == LUAPROGRAM) {
- assert(current_luaprogram); // No lua program present!
- current_luaprogram->attributes["lua"].append(data);
- }
- */
}
void TemplateParser::startTag(std::string name, std::map< std::string, std::string> attributes)