]> www.infradead.org Git - users/hch/nvmetcli.git/commitdiff
nvmetcli: remove the unused Controllers and Controller classes
authorChristoph Hellwig <hch@lst.de>
Fri, 25 Mar 2016 13:53:37 +0000 (14:53 +0100)
committerChristoph Hellwig <hch@lst.de>
Fri, 25 Mar 2016 13:56:24 +0000 (14:56 +0100)
Signed-off-by: Christoph Hellwig <hch@lst.de>
nvmetcli

index 53af6ad1c7091f2bd5ff6b4fbb14c32af0dfad70..5aa27e92e7cbc9d79a61b93d60210f7b18fd102c 100755 (executable)
--- 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])