diff options
author | Cole Robinson <crobinso@redhat.com> | 2018-02-07 15:45:38 -0500 |
---|---|---|
committer | Cole Robinson <crobinso@redhat.com> | 2018-02-07 15:45:38 -0500 |
commit | 8819176ad4adc55f19991ac52edaf4f29ae08023 (patch) | |
tree | 83e4bc957b69877a621492ded5740d1557945a9a /virtinst/xmlbuilder.py | |
parent | 598be36862a84b8de302ea83c8a03448e01f8cfe (diff) | |
download | virt-manager-8819176ad4adc55f19991ac52edaf4f29ae08023.tar.gz |
xmlbuilder: Drop unused node_top_xpath
Diffstat (limited to 'virtinst/xmlbuilder.py')
-rw-r--r-- | virtinst/xmlbuilder.py | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/virtinst/xmlbuilder.py b/virtinst/xmlbuilder.py index 608ade3c..05dba307 100644 --- a/virtinst/xmlbuilder.py +++ b/virtinst/xmlbuilder.py @@ -726,12 +726,11 @@ class _XMLState(object): raise self.xml_node = doc.children - self.xml_node.virtinst_node_top_xpath = self._stub_path self.xml_ctx = _make_xml_context(self.xml_node) # This just stores a reference to our root doc wrapper in - # the root node, so when the doc is autofree'd when the node - # and this xmlstate object are freed + # the root node, so the doc is autofree'd only when the node + # and this xmlstate object are free'd self._xml_root_doc_ref = _DocCleanupWrapper(doc) self.xml_node.virtinst_root_doc = self._xml_root_doc_ref @@ -767,12 +766,6 @@ class _XMLState(object): return fullpath return fullpath + "/" + xpath.split("/", 2)[2] - def get_node_top_xpath(self): - """ - Return the XML path of the root xml_node - """ - return self.xml_node.virtinst_node_top_xpath - def get_node_xml(self, ctx): node = _get_xpath_node(ctx, self.fix_relative_xpath(".")) if not node: |