summaryrefslogtreecommitdiff
path: root/server/src/templateparser.cc
diff options
context:
space:
mode:
authordeva <deva>2008-07-30 12:58:13 +0000
committerdeva <deva>2008-07-30 12:58:13 +0000
commit6c9a544e63e73c8aa3e990e9370ca9c582612f49 (patch)
tree76c2cdd65500116dc5b1539ef1baa0eedeacc01f /server/src/templateparser.cc
parent0da554ba6a55bbc195a30afa8f154af2ec2107a7 (diff)
Reenabled support for upload server. Currently only tested against local print-to-screen version.
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)