CmdUndo: Removed all external traces of undo

This commit is contained in:
Paul Beckingham 2016-07-18 18:10:40 -04:00
parent 1049ae6fcb
commit b8acec05c7
5 changed files with 0 additions and 49 deletions

View file

@ -30,7 +30,6 @@ set (commands_SRCS CmdCancel.cpp
CmdTag.cpp
CmdTags.cpp
CmdTrack.cpp
CmdUndo.cpp
CmdUntag.cpp)
add_library (commands STATIC ${commands_SRCS})

View file

@ -89,8 +89,6 @@ int CmdHelpUsage ()
<< " rc.<name>=<value>\n"
<< '\n';
// TODO undo
// TODO List all extensions.
return 0;
@ -822,8 +820,6 @@ int CmdHelp (const CLI& cli)
<< "same as the 'start' command.\n"
<< '\n';
// TODO undo
// Ruler 1 2 3 4 5 6 7 8
// 12345678901234567890123456789012345678901234567890123456789012345678901234567890
else if (words[0] == "untag")

View file

@ -1,41 +0,0 @@
////////////////////////////////////////////////////////////////////////////////
//
// Copyright 2015 - 2016, Paul Beckingham, Federico Hernandez.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included
// in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
//
// http://www.opensource.org/licenses/mit-license.php
//
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
#include <iostream>
////////////////////////////////////////////////////////////////////////////////
int CmdUndo ()
{
std::cout << "[undo: revert last change]\n";
// TODO Extract most recent transaction.
// TODO Apply inverse.
return 0;
}
////////////////////////////////////////////////////////////////////////////////

View file

@ -56,7 +56,6 @@ int CmdStop (const CLI&, Rules&, Database& );
int CmdTag (const CLI&, Rules&, Database& );
int CmdTags ( Rules&, Database& );
int CmdTrack (const CLI&, Rules&, Database& );
int CmdUndo ( );
int CmdUntag (const CLI&, Rules&, Database& );
int CmdChartDay (const CLI&, Rules&, Database& );

View file

@ -79,7 +79,6 @@ void initializeEntities (CLI& cli)
cli.entity ("command", "tag");
cli.entity ("command", "tags");
cli.entity ("command", "track");
cli.entity ("command", "undo");
cli.entity ("command", "untag");
// Some command list themselves as extensions, to integrate with the real
@ -280,7 +279,6 @@ int dispatchCommand (
else if (command == "tag") status = CmdTag (cli, rules, database );
else if (command == "tags") status = CmdTags ( rules, database );
else if (command == "track") status = CmdTrack (cli, rules, database );
else if (command == "undo") status = CmdUndo ( );
else if (command == "untag") status = CmdUntag (cli, rules, database );
else if (command == "week") status = CmdChartWeek (cli, rules, database );
else status = CmdReport (cli, rules, database, extensions);