mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-26 23:28:14 +03:00
Comment some unused code.
This commit is contained in:
parent
090e474d70
commit
a88d45bff4
2 changed files with 19 additions and 17 deletions
|
@ -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;
|
||||
// Folder::Map map = FolderMan::instance()->map();
|
||||
// SyncResult lastResult;
|
||||
// QDateTime dt;
|
||||
|
||||
foreach( Folder *f, map.values() ) {
|
||||
if( f->syncResult().syncTime() > dt ) {
|
||||
dt = f->syncResult().syncTime();
|
||||
lastResult = f->syncResult();
|
||||
haveSyncResult = true;
|
||||
}
|
||||
// bool haveSyncResult = false;
|
||||
|
||||
if( haveSyncResult ) {
|
||||
setSyncResult(lastResult);
|
||||
}
|
||||
}
|
||||
// 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 )
|
||||
|
|
|
@ -38,7 +38,7 @@ public:
|
|||
~ProtocolWidget();
|
||||
|
||||
void setupList();
|
||||
void setSyncResult( const SyncResult& result );
|
||||
// void setSyncResult( const SyncResult& result );
|
||||
|
||||
signals:
|
||||
|
||||
|
|
Loading…
Reference in a new issue