aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Horn2008-11-09 12:37:19 +0000
committerMax Horn2008-11-09 12:37:19 +0000
commit43e7832e0e40f177cb5d85adc025cf346d46de09 (patch)
tree002aba126c1d7a8853316303b174d56a108b7651
parent44853bf2af97f94defb5b242e17429aceea0d3dc (diff)
downloadscummvm-rg350-43e7832e0e40f177cb5d85adc025cf346d46de09.tar.gz
scummvm-rg350-43e7832e0e40f177cb5d85adc025cf346d46de09.tar.bz2
scummvm-rg350-43e7832e0e40f177cb5d85adc025cf346d46de09.zip
Removed unused XML_GLOBAL_PROP functionality (saves some kilobytes)
svn-id: r34950
-rw-r--r--common/xmlparser.h15
1 files changed, 5 insertions, 10 deletions
diff --git a/common/xmlparser.h b/common/xmlparser.h
index de006cb473..b095034192 100644
--- a/common/xmlparser.h
+++ b/common/xmlparser.h
@@ -56,9 +56,7 @@ namespace Common {
lay->callback = (&kLocalParserName::parserCallback_##keyName);\
layout.top()->children[#keyName] = lay;\
layout.push(lay); \
- _layoutList.push_back(lay);\
- for (Common::List<XMLKeyLayout::XMLKeyProperty>::const_iterator p = globalProps.begin(); p != globalProps.end(); ++p){\
- layout.top()->properties.push_back(*p);}
+ _layoutList.push_back(lay);
#define XML_KEY_RECURSIVE(keyName) {\
layout.top()->children[#keyName] = layout.top();\
@@ -72,11 +70,7 @@ namespace Common {
prop.required = req; \
layout.top()->properties.push_back(prop); }
-#define XML_GLOBAL_PROP(propName, req) {\
- prop.name = #propName; \
- prop.required = req;\
- globalProps.push_back(prop); }
-
+
#define CUSTOM_XML_PARSER(parserName) \
protected: \
@@ -90,7 +84,6 @@ namespace Common {
Common::Stack<XMLKeyLayout*> layout; \
CustomXMLKeyLayout *lay = 0; \
XMLKeyLayout::XMLKeyProperty prop; \
- Common::List<XMLKeyLayout::XMLKeyProperty> globalProps; \
_XMLkeys = new CustomXMLKeyLayout; \
layout.push(_XMLkeys);
@@ -161,7 +154,9 @@ public:
virtual ~XMLKeyLayout() {
properties.clear();
}
- } *_XMLkeys;
+ };
+
+ XMLKeyLayout *_XMLkeys;
/** Struct representing a parsed node */
struct ParserNode {