From fd83bf2089e63c670895338910ee29265fe854b8 Mon Sep 17 00:00:00 2001 From: Klaas Freitag Date: Wed, 20 Feb 2013 10:06:45 +0100 Subject: [PATCH] Remove unused variable doTreeWalk. --- src/mirall/csyncthread.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/mirall/csyncthread.cpp b/src/mirall/csyncthread.cpp index 3f56821ba7..43c55d2ffc 100644 --- a/src/mirall/csyncthread.cpp +++ b/src/mirall/csyncthread.cpp @@ -325,7 +325,6 @@ void CSyncThread::startSync() { qDebug() << "starting to sync " << qApp->thread() << QThread::currentThread(); CSYNC *csync; - bool doTreeWalk = true; int proxyPort = _proxy.port(); _mutex.lock(); @@ -391,11 +390,9 @@ void CSyncThread::startSync() if( csync_walk_local_tree(csync, &treewalkLocal, 0) < 0 ) { qDebug() << "Error in local treewalk."; - doTreeWalk = false; } - if( doTreeWalk && csync_walk_remote_tree(csync, &treewalkRemote, 0) < 0 ) { + if( csync_walk_remote_tree(csync, &treewalkRemote, 0) < 0 ) { qDebug() << "Error in remote treewalk."; - doTreeWalk = false; } if (_needsUpdate)