Refactoring

- Obsoleted Cmd object.
- Removed Context::dispatch, renamed dispatch2 --> dispatch.
- Commented out import and custom report functionality that depends
  on Cmd.  This should be about as broken as taskwarrior gets.  It's
  all uphill from here.
This commit is contained in:
Paul Beckingham 2011-06-02 00:17:16 -04:00
parent bcbff8d99b
commit a3912d9123
10 changed files with 62 additions and 323 deletions

View file

@ -34,7 +34,6 @@
#include <Config.h>
#include <Sequence.h>
#include <Subst.h>
#include <Cmd.h>
#include <Task.h>
#include <TDB.h>
#include <TDB2.h>
@ -56,7 +55,6 @@ public:
void initialize (int, const char**); // all startup
int run ();
int dispatch2 (std::string&); // command handler dispatch
int dispatch (std::string&); // command handler dispatch
void shadow (); // shadow file update
@ -71,8 +69,10 @@ public:
void debug (const std::string&); // Debug message sink
void clearMessages ();
/*
void parse ();
void parse (std::vector <std::string>&, Cmd&, Task&, Sequence&, Subst&, Filter&);
*/
void clear ();
void disallowModification () const;
@ -105,7 +105,6 @@ public:
std::string commandLine;
std::string file_override;
std::string var_overrides;
Cmd cmd; // TODO Obsolete
std::map <std::string, std::string> aliases;
std::vector <std::string> tagAdditions;
std::vector <std::string> tagRemovals;