--- a/xmlclass/xmlclass.py Tue Jan 22 11:00:49 2008 +0100
+++ b/xmlclass/xmlclass.py Wed Jan 23 18:25:57 2008 +0100
@@ -982,37 +982,6 @@
"extract" : generateClassExtractFunction(class_definition),
"generate" : class_definition.generateXMLText}
- def MarkUsedClasses(self, classname):
- # Checks that classe haven't been generated yet
- if classname in self.XMLClassDefinitions:
- inheritance, attributes = self.XMLClassDefinitions[classname]
-
- # If inheritance classes haven't been generated
- for base in inheritance:
- if base in self.ComputedClasses:
- self.ComputedClasses[base].IsBaseClass = False
-
- # Checks that all attribute types are available
- for attribute, type_attribute in attributes.items():
- if attribute in ["choice_content","multichoice_content"]:
- element_types = {}
- for attr, value in type_attribute.items():
- if attr == "ref":
- for ref in value:
- element_types.update(self.ComputedTypes[ref[4:]])
- else:
- element_types[attr] = value
- for type_name in element_types.values():
- type_compute = type_name[4:].replace("[]","")
- if type_compute in self.ComputedClasses:
- self.ComputedClasses[type_compute].IsBaseClass = False
- elif attribute != "group":
- if attribute not in ["enum", "limit", "order"]:
- if type_attribute[0].startswith("cls:"):
- type_compute = type_attribute[0][4:].replace("[]","")
- if type_compute in self.ComputedClasses:
- self.ComputedClasses[type_compute].IsBaseClass = False
-
"""
Methods that print the classes generated
"""