diff options
author | Patrick Totzke <patricktotzke@gmail.com> | 2013-08-03 19:47:36 +0100 |
---|---|---|
committer | Patrick Totzke <patricktotzke@gmail.com> | 2013-10-30 20:54:13 +0000 |
commit | 0a11f2ace590414178c987c546f2401dfbb8376f (patch) | |
tree | a8d6074c1c206ac3d4cb8a93abfd7a66e1be335a | |
parent | dd468cc31996dd879bf5c60a4e642e104c5ad7ac (diff) |
remove obsolete CommandSequenceCommand
-rw-r--r-- | alot/commands/globals.py | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/alot/commands/globals.py b/alot/commands/globals.py index 40eebf2f..de6fcb71 100644 --- a/alot/commands/globals.py +++ b/alot/commands/globals.py @@ -872,37 +872,3 @@ class MoveCommand(Command): else: ui.notify('unknown movement: ' + self.movement, priority='error') - - -class CommandSequenceCommand(Command): - - """Meta-Command that just applies a sequence of given Commands in order""" - - def __init__(self, cmdline='', **kwargs): - Command.__init__(self, **kwargs) - self.cmdline = cmdline.strip() - - def apply(self, ui): - - def apply_command(ignored, cmdstring, cmd): - logging.debug('CMDSEQ: apply %s' % str(cmdstring)) - # store cmdline for use with 'repeat' command - if cmd.repeatable: - ui.last_commandline = self.cmdline.lstrip() - return ui.apply_command(cmd, handle_error=False) - - # we initialize a deferred which is already triggered - # so that our callbacks will start to be called - # immediately as possible - d = defer.succeed(None) - - # split commandline if necessary - for cmdstring in split_commandline(self.cmdline): - # translate cmdstring into :class:`Command` - try: - cmd = commandfactory(cmdstring, ui.mode) - except CommandParseError, e: - ui.notify(e.message, priority='error') - return - d.addCallback(apply_command, cmdstring, cmd) - return d |