Remove unused variable doTreeWalk.

This commit is contained in:
Klaas Freitag 2013-02-20 10:06:45 +01:00
parent 75f075feb0
commit fd83bf2089

View file

@ -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)