From 52b3f7105d4daea7801bf9b98c733804a5e3bdba Mon Sep 17 00:00:00 2001 From: Krzesimir Nowak Date: Mon, 29 Jul 2013 14:46:53 +0200 Subject: [PATCH] Remove unused stuff. --- src/mirall/mirallconfigfile.cpp | 2 +- src/mirall/owncloudinfo.cpp | 18 ------------------ src/mirall/owncloudinfo.h | 14 -------------- 3 files changed, 1 insertion(+), 33 deletions(-) diff --git a/src/mirall/mirallconfigfile.cpp b/src/mirall/mirallconfigfile.cpp index c62ad272b..3617ff744 100644 --- a/src/mirall/mirallconfigfile.cpp +++ b/src/mirall/mirallconfigfile.cpp @@ -613,7 +613,7 @@ void MirallConfigFile::setMonoIcons(bool useMonoIcons) AbstractCredentials* MirallConfigFile::getCredentials() const { - return credentialsPerConfig[_customHandle].data(); + return credentialsPerConfig[_customHandle].data(); } } diff --git a/src/mirall/owncloudinfo.cpp b/src/mirall/owncloudinfo.cpp index daca4c8eb..5d6aaac5e 100644 --- a/src/mirall/owncloudinfo.cpp +++ b/src/mirall/owncloudinfo.cpp @@ -516,24 +516,6 @@ void ownCloudInfo::slotError( QNetworkReply::NetworkError err) } } -void ownCloudInfo::setCredentials( const QString& user, const QString& passwd, - const QString& configHandle ) -{ - QString con( configHandle ); - if( configHandle.isEmpty() ) - con = DEFAULT_CONNECTION; - - if( _credentials.contains(con) ) { - qDebug() << "Overwriting credentials for connection " << con; - } - - oCICredentials creds; - creds.user = user; - creds.passwd = passwd; - creds.connection = con; - _credentials[con] = creds; -} - // ============================================================================ void ownCloudInfo::setupHeaders( QNetworkRequest & req, quint64 size ) { diff --git a/src/mirall/owncloudinfo.h b/src/mirall/owncloudinfo.h index 901a17799..a9d467e70 100644 --- a/src/mirall/owncloudinfo.h +++ b/src/mirall/owncloudinfo.h @@ -21,12 +21,6 @@ namespace Mirall { -typedef struct { - QString user; - QString passwd; - QString connection; -} oCICredentials; - class ownCloudInfo : public QObject { Q_OBJECT @@ -101,13 +95,6 @@ public: */ QList certificateChain() const; - /** - * Store credentials for a given connection. Empty connection parameter - * means "default connection". - */ - void setCredentials( const QString&, const QString&, - const QString& configHandle = QString::null ); - /** * returns the owncloud webdav url. * It may be different from the one in the config if there was a HTTP redirection @@ -163,7 +150,6 @@ private: QList _certificateChain; bool _certsUntrusted; int _authAttempts; - QMap _credentials; QMutex _certChainMutex; int _redirectCount; qint64 _lastQuotaUsedBytes;