From 849b12ec8b4d4cef04e2fbdf8dab5572135ae944 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Thu, 17 Feb 2005 23:14:54 +0000 Subject: [PATCH] Removed getCommands, which isn't being used by anything. --- src/callbacks.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/callbacks.py b/src/callbacks.py index bf9978902..703d105d9 100644 --- a/src/callbacks.py +++ b/src/callbacks.py @@ -344,15 +344,6 @@ def tokenize(s, channel=None): except ValueError, e: raise SyntaxError, str(e) -def getCommands(tokens): - """Given tokens as output by tokenize, returns the command names.""" - L = [] - if tokens and isinstance(tokens, list): - L.append(tokens[0]) - for elt in tokens: - L.extend(getCommands(elt)) - return L - def findCallbackForCommand(irc, name): """Given a command name and an Irc object, returns a list of callbacks that commandName is in."""