From 5d2528bff6f04265b6010f04f49b7b1103a1d63f Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Mon, 13 Jun 2011 00:49:37 -0400 Subject: [PATCH] Command: tip - Removed (stubbed) 'tip' command from core. Will be external, if and when it is developed. --- src/commands/CMakeLists.txt | 1 - src/commands/CmdTip.cpp | 51 ------------------------------------- src/commands/CmdTip.h | 42 ------------------------------ src/commands/Command.cpp | 2 -- 4 files changed, 96 deletions(-) delete mode 100644 src/commands/CmdTip.cpp delete mode 100644 src/commands/CmdTip.h diff --git a/src/commands/CMakeLists.txt b/src/commands/CMakeLists.txt index a92838424..8bcffd3fc 100644 --- a/src/commands/CMakeLists.txt +++ b/src/commands/CMakeLists.txt @@ -47,7 +47,6 @@ set (commands_SRCS Command.cpp Command.h CmdSummary.cpp CmdSummary.h CmdTags.cpp CmdTags.h CmdTimesheet.cpp CmdTimesheet.h - CmdTip.cpp CmdTip.h CmdUndo.cpp CmdUndo.h CmdUrgency.cpp CmdUrgency.h CmdVersion.cpp CmdVersion.h) diff --git a/src/commands/CmdTip.cpp b/src/commands/CmdTip.cpp deleted file mode 100644 index edce8a45c..000000000 --- a/src/commands/CmdTip.cpp +++ /dev/null @@ -1,51 +0,0 @@ -//////////////////////////////////////////////////////////////////////////////// -// taskwarrior - a command line task list manager. -// -// Copyright 2006 - 2011, Paul Beckingham, Federico Hernandez. -// All rights reserved. -// -// This program is free software; you can redistribute it and/or modify it under -// the terms of the GNU General Public License as published by the Free Software -// Foundation; either version 2 of the License, or (at your option) any later -// version. -// -// This program is distributed in the hope that it will be useful, but WITHOUT -// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -// FOR A PARTICULAR PURPOSE. See the GNU General Public License for more -// details. -// -// You should have received a copy of the GNU General Public License along with -// this program; if not, write to the -// -// Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, -// Boston, MA -// 02110-1301 -// USA -// -//////////////////////////////////////////////////////////////////////////////// - -#include -#include -#include - -extern Context context; - -//////////////////////////////////////////////////////////////////////////////// -CmdTip::CmdTip () -{ - _keyword = "tip"; - _usage = "task tip"; - _description = "Displays helpful usage tips"; - _read_only = true; - _displays_id = false; -} - -//////////////////////////////////////////////////////////////////////////////// -int CmdTip::execute (std::string&) -{ - // TODO Read tips file, pick one, display it. - return 0; -} - -//////////////////////////////////////////////////////////////////////////////// diff --git a/src/commands/CmdTip.h b/src/commands/CmdTip.h deleted file mode 100644 index 1cd482c98..000000000 --- a/src/commands/CmdTip.h +++ /dev/null @@ -1,42 +0,0 @@ -//////////////////////////////////////////////////////////////////////////////// -// taskwarrior - a command line task list manager. -// -// Copyright 2006 - 2011, Paul Beckingham, Federico Hernandez. -// All rights reserved. -// -// This program is free software; you can redistribute it and/or modify it under -// the terms of the GNU General Public License as published by the Free Software -// Foundation; either version 2 of the License, or (at your option) any later -// version. -// -// This program is distributed in the hope that it will be useful, but WITHOUT -// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -// FOR A PARTICULAR PURPOSE. See the GNU General Public License for more -// details. -// -// You should have received a copy of the GNU General Public License along with -// this program; if not, write to the -// -// Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, -// Boston, MA -// 02110-1301 -// USA -// -//////////////////////////////////////////////////////////////////////////////// -#ifndef INCLUDED_CMDTIP -#define INCLUDED_CMDTIP -#define L10N // Localization complete. - -#include -#include - -class CmdTip : public Command -{ -public: - CmdTip (); - int execute (std::string&); -}; - -#endif -//////////////////////////////////////////////////////////////////////////////// diff --git a/src/commands/Command.cpp b/src/commands/Command.cpp index 92b9d835f..25af140f8 100644 --- a/src/commands/Command.cpp +++ b/src/commands/Command.cpp @@ -69,7 +69,6 @@ #include #include #include -#include #include #include #include @@ -132,7 +131,6 @@ void Command::factory (std::map & all) c = new CmdSummary (); all[c->keyword ()] = c; c = new CmdTags (); all[c->keyword ()] = c; c = new CmdTimesheet (); all[c->keyword ()] = c; - c = new CmdTip (); all[c->keyword ()] = c; c = new CmdUndo (); all[c->keyword ()] = c; c = new CmdUrgency (); all[c->keyword ()] = c; c = new CmdVersion (); all[c->keyword ()] = c;