mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
removed some dead code
This commit is contained in:
parent
a04d56e84e
commit
d055887aa1
@ -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());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user