diff options
author | Klaas Freitag <freitag@owncloud.com> | 2013-11-26 14:32:00 +0400 |
---|---|---|
committer | Klaas Freitag <freitag@owncloud.com> | 2013-11-26 17:02:11 +0400 |
commit | a88d45bff40516b949a37ec0d84aa1a2e6efe8c9 (patch) | |
tree | 36c7b792b05b1aed501d19e89ae9e842153d5756 /src/mirall | |
parent | 090e474d700564311f35b22f2e46ebce5507aaea (diff) |
Comment some unused code.
Diffstat (limited to 'src/mirall')
-rw-r--r-- | src/mirall/protocolwidget.cpp | 38 | ||||
-rw-r--r-- | src/mirall/protocolwidget.h | 2 |
2 files changed, 21 insertions, 19 deletions
diff --git a/src/mirall/protocolwidget.cpp b/src/mirall/protocolwidget.cpp index 532882dbc..b09ee2049 100644 --- a/src/mirall/protocolwidget.cpp +++ b/src/mirall/protocolwidget.cpp @@ -64,6 +64,7 @@ ProtocolWidget::ProtocolWidget(QWidget *parent) : } +#if 0 void ProtocolWidget::setSyncResultStatus(const SyncResult& result ) { if( result.errorStrings().count() ) { @@ -93,6 +94,7 @@ void ProtocolWidget::setSyncResultStatus(const SyncResult& result ) } + void ProtocolWidget::setSyncResult( const SyncResult& result ) { setSyncResultStatus(result); @@ -171,26 +173,27 @@ void ProtocolWidget::setSyncResult( const SyncResult& result ) } } } - +#endif void ProtocolWidget::setupList() { // get the folders to set up the top level list. - Folder::Map map = FolderMan::instance()->map(); - SyncResult lastResult; - QDateTime dt; - bool haveSyncResult = false; - - foreach( Folder *f, map.values() ) { - if( f->syncResult().syncTime() > dt ) { - dt = f->syncResult().syncTime(); - lastResult = f->syncResult(); - haveSyncResult = true; - } - - if( haveSyncResult ) { - setSyncResult(lastResult); - } - } +// Folder::Map map = FolderMan::instance()->map(); +// SyncResult lastResult; +// QDateTime dt; + +// bool haveSyncResult = false; + +// foreach( Folder *f, map.values() ) { +// if( f->syncResult().syncTime() > dt ) { +// dt = f->syncResult().syncTime(); +// lastResult = f->syncResult(); +// haveSyncResult = true; +// } + +// if( haveSyncResult ) { +// setSyncResult(lastResult); +// } +// } QList<Progress::Info> progressList = ProgressDispatcher::instance()->recentChangedItems(0); // All. @@ -309,7 +312,6 @@ void ProtocolWidget::slotProgressProblem( const QString& folder, const Progress: } item->setToolTip(0, longTimeStr); _ui->_treeWidget->insertTopLevelItem(0, item); - Q_UNUSED(item); } void ProtocolWidget::slotOpenFile( QTreeWidgetItem *item, int ) diff --git a/src/mirall/protocolwidget.h b/src/mirall/protocolwidget.h index 528828a15..9a931cd0a 100644 --- a/src/mirall/protocolwidget.h +++ b/src/mirall/protocolwidget.h @@ -38,7 +38,7 @@ public: ~ProtocolWidget(); void setupList(); - void setSyncResult( const SyncResult& result ); + // void setSyncResult( const SyncResult& result ); signals: |