samba-tool: Removed SuperCommand usage method
authorGiampaolo Lauria <lauria2@yahoo.com>
Fri, 29 Jul 2011 01:42:03 +0000 (21:42 -0400)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 9 Sep 2011 05:24:00 +0000 (15:24 +1000)
Removed usage method as it is not being used anywhere

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
source4/scripting/python/samba/netcmd/__init__.py

index 9636a3a05f6e768e4cfad7ce63a8f93a9097b5e4..12e6a99b4d3cedb6a7fcc602ac27e81919580d5b 100644 (file)
@@ -161,13 +161,6 @@ class SuperCommand(Command):
             return 0
         raise CommandError("No such subcommand '%s'" % subcommand)
 
-    def usage(self, myname, subcommand=None, *args):
-        if subcommand is None or not subcommand in self.subcommands:
-            print "Usage: samba-tool %s (%s) [options]" % (myname,
-                " | ".join(self.subcommands.keys()))
-        else:
-            return self.subcommands[subcommand].usage(*args)
-
 
 
 class CommandError(Exception):