From 29eb9cc169c83eec52e9cc6e388a9d995fd4bd70 Mon Sep 17 00:00:00 2001 From: Christoph Hellwig <hch@lst.de> Date: Fri, 25 Mar 2016 14:53:37 +0100 Subject: [PATCH] nvmetcli: remove the unused Controllers and Controller classes Signed-off-by: Christoph Hellwig <hch@lst.de> --- nvmetcli | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/nvmetcli b/nvmetcli index 53af6ad..5aa27e9 100755 --- a/nvmetcli +++ b/nvmetcli @@ -168,23 +168,6 @@ class UINamespaceNode(configshell.node.ConfigNode): return self.cfnode.set_attr('device', attr, value) -class UIControllersNode(configshell.node.ConfigNode): - def __init__(self, parent): - configshell.node.ConfigNode.__init__(self, 'controllers', parent) - self._controllers = [0, 1] - self.refresh() - - def refresh(self): - self._children = set([]) - for ctrl in self._controllers: - UIControllerNode(self, ctrl) - - -class UIControllerNode(configshell.node.ConfigNode): - def __init__(self, parent, cntlid): - configshell.node.ConfigNode.__init__(self, str(cntlid), parent) - - def usage(): print("syntax: %s save [file_to_save_to]" % sys.argv[0]) print(" %s restore [file_to_restore_from]" % sys.argv[0]) -- GitLab