From a7fd5de5c31d35893f0d96548adb14919d08af55 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sun, 6 Sep 2015 01:58:49 -0400 Subject: [PATCH] CmdUndo: Removed redundant arg checks --- src/commands/CmdUndo.cpp | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/commands/CmdUndo.cpp b/src/commands/CmdUndo.cpp index 48dcd1fc2..484353a10 100644 --- a/src/commands/CmdUndo.cpp +++ b/src/commands/CmdUndo.cpp @@ -51,16 +51,6 @@ CmdUndo::CmdUndo () //////////////////////////////////////////////////////////////////////////////// int CmdUndo::execute (std::string& output) { - Filter filter; - if (filter.hasFilter ()) - throw std::string (STRING_ERROR_NO_FILTER); - if (filter.hasModifications ()) - throw std::string (STRING_ERROR_NO_MODS); - - // Detect attempts to modify the task. - if (context.cli2.getWords ().size ()) - throw std::string (STRING_CMD_UNDO_MODS); - context.tdb2.revert (); return 0; }