remove unused code in XendRoot.py
PATCH 1/1 remove unused code in XendRoot.py
XendRoot.py::get_config method is not used in -unstable (as of [email protected]), so this patch removes it.
Signed-off-by Nguyen Anh Quynh <[email protected]
$ diffstat xendroot_getconfig.patch XendRoot.py | 13 ------------- 1 files changed, 13 deletions(-)
===== tools/python/xen/xend/XendRoot.py 1.25 vs edited =====
tools/python/xen/xend/XendRoot.py +0 -13
@@ -217,19 +217,6 @@ self.logError('Config file does not exist: %s', self.config_path) self.config = ['xend-config'] - def get_config(self, name=None): - """Get the configuration element with the given name, or - the whole configuration if no name is given. - - @param name: element name (optional) - @return: config or none - """ - if name is None: - val = self.config - else: - val = sxp.child(self.config, name) - return val - def get_config_value(self, name, val=None): """Get the value of an atomic configuration element.
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel