init: CmdStart does not need rules access

This commit is contained in:
Paul Beckingham 2016-03-22 01:38:55 -04:00
parent 94cf53c3cc
commit 7ad9132d72
3 changed files with 2 additions and 3 deletions

View file

@ -32,7 +32,6 @@
////////////////////////////////////////////////////////////////////////////////
int CmdStart (
const std::vector <std::string>& args,
Rules& rules,
Database& database,
Log& log)
{

View file

@ -48,7 +48,7 @@ int CmdHelp (const std::vector <std::string>&,
int CmdLog (const std::vector <std::string>&, Log&);
int CmdImport ( );
int CmdReport ( );
int CmdStart (const std::vector <std::string>&, Rules&, Database&, Log&);
int CmdStart (const std::vector <std::string>&, Database&, Log&);
int CmdStop ( Database&, Log&);
int CmdTags ( );
int CmdTrack ( );

View file

@ -202,7 +202,7 @@ int dispatchCommand (
else if (closeEnough (allCommands[9], args[1], 2)) status = CmdImport ( );
else if (closeEnough (allCommands[10], args[1], 2)) status = CmdLog (args, log);
else if (closeEnough (allCommands[11], args[1], 2)) status = CmdReport ( );
else if (closeEnough (allCommands[12], args[1], 2)) status = CmdStart (args, rules, database, log);
else if (closeEnough (allCommands[12], args[1], 2)) status = CmdStart (args, database, log);
else if (closeEnough (allCommands[13], args[1], 2)) status = CmdStop ( database, log);
else if (closeEnough (allCommands[14], args[1], 2)) status = CmdTags ( );
else if (closeEnough (allCommands[15], args[1], 2)) status = CmdTrack ( );