Commits

Geoffrey Sneddon committed b984f7b

Remove unused to_remove set.

Comments (0)

Files changed (1)

specGen/processes/xref.py

 				self.dfns[term] = id
 	
 	def addReferences(self, ElementTree, w3c_compat = False, w3c_compat_xref_elements = False, w3c_compat_xref_a_placement = False, **kwargs):
-		to_remove = set()
 		for element in ElementTree.iter(tag=etree.Element):
 			if element.tag in instance_elements or (w3c_compat or w3c_compat_xref_elements) and element.tag in w3c_instance_elements:
 				term = self.getTerm(element, w3c_compat=w3c_compat, **kwargs)
 								link.append(element)
 								link.tail = link[0].tail
 								link[0].tail = None
-		for element in to_remove:
-			element.getparent().remove(element)
 	
 	def getTerm(self, element, w3c_compat = False, w3c_compat_xref_normalization = False, **kwargs):
 		if element.get(u"title") is not None: