mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Code Cleanup
- Removed unused timing from the sync command.
This commit is contained in:
parent
16c5314cfa
commit
2aadf445bc
1 changed files with 0 additions and 14 deletions
|
@ -53,9 +53,6 @@ int CmdSync::execute (std::string& output)
|
|||
{
|
||||
int status = 0;
|
||||
#ifdef HAVE_LIBGNUTLS
|
||||
Timer timer_sync;
|
||||
timer_sync.start ();
|
||||
|
||||
std::stringstream out;
|
||||
|
||||
// Loog for the 'init' keyword to indicate one-time pending.data upload.
|
||||
|
@ -263,17 +260,6 @@ int CmdSync::execute (std::string& output)
|
|||
out << "\n";
|
||||
output = out.str ();
|
||||
|
||||
/*
|
||||
timer_sync.stop ();
|
||||
std::stringstream s;
|
||||
s << "Sync "
|
||||
<< Date ().toISO ()
|
||||
<< " sync:"
|
||||
<< timer_sync.total ()
|
||||
<< "\n";
|
||||
debug (s.str ());
|
||||
*/
|
||||
|
||||
#else
|
||||
// Without GnuTLS found at compile time, there is no working sync command.
|
||||
throw std::string (STRING_CMD_SYNC_NO_TLS);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue