removed some dead code

This commit is contained in:
csoler 2019-09-23 20:52:19 +02:00
parent a04d56e84e
commit d055887aa1
No known key found for this signature in database
GPG Key ID: 7BCA522266C0804C

View File

@ -458,15 +458,6 @@ void NewFriendList::processSettings(bool load)
Settings->setArrayIndex(index);
std::string gids = Settings->value("open").toString().toStdString();
// RsGroupInfo ginfo ;
//
// if(rsPeers->getGroupInfoByName(gids,ginfo)) // backward compatibility
// addGroupToExpand(ginfo.id) ;
// else if(rsPeers->getGroupInfo(RsNodeGroupId(gids),ginfo)) // backward compatibility
// addGroupToExpand(ginfo.id) ;
// else
// std::cerr << "(EE) Cannot find group info for openned group \"" << gids << "\"" << std::endl;
}
Settings->endArray();
}
@ -486,15 +477,6 @@ void NewFriendList::processSettings(bool load)
// sort
Settings->setValue("sortByState", mProxyModel->sortByState());
// // open groups
// Settings->beginWriteArray("Groups");
// int arrayIndex = 0;
// std::set<RsNodeGroupId> expandedPeers;
// getExpandedGroups(expandedPeers);
// foreach (RsNodeGroupId groupId, expandedPeers) {
// Settings->setArrayIndex(arrayIndex++);
// Settings->setValue("open", QString::fromStdString(groupId.toStdString()));
// }
Settings->endArray();
}
}
@ -719,8 +701,6 @@ void NewFriendList::peerTreeWidgetCustomPopupMenu()
contextMenu.addAction(ui->actionExportFriendlist);
contextMenu.addAction(ui->actionImportFriendlist);
// contextMenu = ui->peerTreeWidget->createStandardContextMenu(contextMenu);
contextMenu.exec(QCursor::pos());
}