From 6c9a544e63e73c8aa3e990e9370ca9c582612f49 Mon Sep 17 00:00:00 2001 From: deva Date: Wed, 30 Jul 2008 12:58:13 +0000 Subject: Reenabled support for upload server. Currently only tested against local print-to-screen version. --- server/src/templateparser.cc | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'server/src/templateparser.cc') 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) -- cgit v1.2.3