summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Totzke <patricktotzke@gmail.com>2013-08-03 19:47:36 +0100
committerPatrick Totzke <patricktotzke@gmail.com>2013-10-30 20:54:13 +0000
commit0a11f2ace590414178c987c546f2401dfbb8376f (patch)
treea8d6074c1c206ac3d4cb8a93abfd7a66e1be335a
parentdd468cc31996dd879bf5c60a4e642e104c5ad7ac (diff)
remove obsolete CommandSequenceCommand
-rw-r--r--alot/commands/globals.py34
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