From: Ken'ichi Ohmichi Date: Fri, 6 Mar 2015 08:25:01 +0000 (+0000) Subject: Remove unused find_attribute_or_element() X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=ca6b7ef0f074a5c08ee00dd393bef4c63c41d0df;p=openstack-build%2Fcinder-build.git Remove unused find_attribute_or_element() find_attribute_or_element() is not used since the first commit (c53d8e343e50d4cf7ea9a6a81258848c2d893bfb), then this patch removes the method. Change-Id: I3429860e7b1eb983b994b5c1c16caff1fef066ff --- diff --git a/cinder/api/openstack/wsgi.py b/cinder/api/openstack/wsgi.py index 266931e3d..c72da755d 100644 --- a/cinder/api/openstack/wsgi.py +++ b/cinder/api/openstack/wsgi.py @@ -373,17 +373,6 @@ class XMLDeserializer(TextDeserializer): text.append(child.nodeValue) return ''.join(text) - def find_attribute_or_element(self, parent, name): - """Get an attribute value; fallback to an element if not found.""" - if parent.hasAttribute(name): - return parent.getAttribute(name) - - node = self.find_first_child_named(parent, name) - if node: - return self.extract_text(node) - - return None - def default(self, datastring): return {'body': self._from_xml(datastring)}