From 02650acac397afe509b6b3bce6df975920d386b8 Mon Sep 17 00:00:00 2001 From: Giampaolo Lauria Date: Thu, 28 Jul 2011 21:42:03 -0400 Subject: samba-tool: Removed SuperCommand usage method Removed usage method as it is not being used anywhere Signed-off-by: Amitay Isaacs Signed-off-by: Andrew Bartlett --- source4/scripting/python/samba/netcmd/__init__.py | 7 ------- 1 file changed, 7 deletions(-) (limited to 'source4/scripting') diff --git a/source4/scripting/python/samba/netcmd/__init__.py b/source4/scripting/python/samba/netcmd/__init__.py index 9636a3a05f..12e6a99b4d 100644 --- a/source4/scripting/python/samba/netcmd/__init__.py +++ b/source4/scripting/python/samba/netcmd/__init__.py @@ -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): -- cgit