Remove more dead code for readability

This commit is contained in:
Daniel Molkentin 2013-06-19 11:31:09 +02:00
parent 4ac98bde73
commit 01ad3c4d81
2 changed files with 0 additions and 6 deletions

View File

@ -106,8 +106,6 @@ QString CSyncThread::csyncErrorToString( CSYNC_ERROR_CODE err, const char *errSt
break;
case CSYNC_ERR_ACCESS_FAILED:
errStr = tr("<p>The target directory does not exist.</p><p>Please check the sync setup.</p>");
// this is critical. The database has to be removed.
emit wipeDb();
break;
case CSYNC_ERR_REMOTE_CREATE:
case CSYNC_ERR_REMOTE_STAT:

View File

@ -69,7 +69,6 @@ ownCloudFolder::ownCloudFolder(const QString &alias,
, _csync(0)
, _csyncError(false)
, _csyncUnavail(false)
, _wipeDb(false)
{
ServerActionNotifier *notifier = new ServerActionNotifier(this);
connect(notifier, SIGNAL(guiLog(QString,QString)), Logger::instance(), SIGNAL(guiLog(QString,QString)));
@ -271,7 +270,6 @@ void ownCloudFolder::startSync(const QStringList &pathList)
_errors.clear();
_csyncError = false;
_csyncUnavail = false;
_wipeDb = false;
MirallConfigFile cfgFile;
@ -333,7 +331,6 @@ void ownCloudFolder::slotCSyncFinished()
qDebug() << " ** error Strings: " << _errors;
_syncResult.setErrorStrings( _errors );
qDebug() << " * owncloud csync thread finished with error";
if( _wipeDb ) wipe();
} else if (_csyncUnavail) {
_syncResult.setStatus(SyncResult::Unavailable);
} else {
@ -427,7 +424,6 @@ void ownCloudFolder::wipe()
if( ctmpFile.exists() ) {
ctmpFile.remove();
}
_wipeDb = false;
}
ServerActionNotifier::ServerActionNotifier(QObject *parent)