mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-26 07:55:44 -04:00
removed debug output
This commit is contained in:
parent
6a8f6bf93d
commit
1181e26bc5
1 changed files with 14 additions and 2 deletions
|
@ -959,7 +959,9 @@ std::map<RsPgpId,uint32_t>::const_iterator RsFriendListModel::checkProfileIndex(
|
||||||
|
|
||||||
it2 = pgp_indices.find(pgp_id);
|
it2 = pgp_indices.find(pgp_id);
|
||||||
|
|
||||||
|
#ifdef DEBUG_MODEL
|
||||||
RsDbg() << " Creating profile pgp id = " << pgp_id << " (" << hprof.profile_info.name << ")" << std::endl;
|
RsDbg() << " Creating profile pgp id = " << pgp_id << " (" << hprof.profile_info.name << ")" << std::endl;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
return it2;
|
return it2;
|
||||||
}
|
}
|
||||||
|
@ -989,9 +991,9 @@ void RsFriendListModel::updateInternalData()
|
||||||
checkProfileIndex(*it,pgp_indices,mProfiles,true);
|
checkProfileIndex(*it,pgp_indices,mProfiles,true);
|
||||||
|
|
||||||
// Now parse peer ids and look for the associated PGP id. If not found, raise an error.
|
// Now parse peer ids and look for the associated PGP id. If not found, raise an error.
|
||||||
|
#ifdef DEBUG_MODEL
|
||||||
RsDbg() << "Updating Nodes information: " << std::endl;
|
RsDbg() << "Updating Nodes information: " << std::endl;
|
||||||
|
#endif
|
||||||
std::list<RsPeerId> peer_ids ;
|
std::list<RsPeerId> peer_ids ;
|
||||||
rsPeers->getFriendList(peer_ids);
|
rsPeers->getFriendList(peer_ids);
|
||||||
|
|
||||||
|
@ -1023,7 +1025,9 @@ void RsFriendListModel::updateInternalData()
|
||||||
std::list<RsGroupInfo> groupInfoList;
|
std::list<RsGroupInfo> groupInfoList;
|
||||||
rsPeers->getGroupInfoList(groupInfoList) ;
|
rsPeers->getGroupInfoList(groupInfoList) ;
|
||||||
|
|
||||||
|
#ifdef DEBUG_MODEL
|
||||||
RsDbg() << "Updating Groups information: " << std::endl;
|
RsDbg() << "Updating Groups information: " << std::endl;
|
||||||
|
#endif
|
||||||
|
|
||||||
for(auto it(groupInfoList.begin());it!=groupInfoList.end();++it)
|
for(auto it(groupInfoList.begin());it!=groupInfoList.end();++it)
|
||||||
{
|
{
|
||||||
|
@ -1032,7 +1036,9 @@ void RsFriendListModel::updateInternalData()
|
||||||
HierarchicalGroupInformation hgroup;
|
HierarchicalGroupInformation hgroup;
|
||||||
hgroup.group_info = *it;
|
hgroup.group_info = *it;
|
||||||
|
|
||||||
|
#ifdef DEBUG_MODEL
|
||||||
RsDbg() << " Group \"" << hgroup.group_info.name << "\"" << std::endl;
|
RsDbg() << " Group \"" << hgroup.group_info.name << "\"" << std::endl;
|
||||||
|
#endif
|
||||||
|
|
||||||
for(auto it2((*it).peerIds.begin());it2!=(*it).peerIds.end();++it2)
|
for(auto it2((*it).peerIds.begin());it2!=(*it).peerIds.end();++it2)
|
||||||
{
|
{
|
||||||
|
@ -1052,7 +1058,9 @@ void RsFriendListModel::updateInternalData()
|
||||||
|
|
||||||
// now the top level list
|
// now the top level list
|
||||||
|
|
||||||
|
#ifdef DEBUG_MODEL
|
||||||
RsDbg() << "Creating top level list" << std::endl;
|
RsDbg() << "Creating top level list" << std::endl;
|
||||||
|
#endif
|
||||||
|
|
||||||
mTopLevel.clear();
|
mTopLevel.clear();
|
||||||
std::set<RsPgpId> already_in_a_group;
|
std::set<RsPgpId> already_in_a_group;
|
||||||
|
@ -1061,7 +1069,9 @@ void RsFriendListModel::updateInternalData()
|
||||||
{
|
{
|
||||||
for(uint32_t i=0;i<mGroups.size();++i)
|
for(uint32_t i=0;i<mGroups.size();++i)
|
||||||
{
|
{
|
||||||
|
#ifdef DEBUG_MODEL
|
||||||
RsDbg() << " Group " << mGroups[i].group_info.name << std::endl;
|
RsDbg() << " Group " << mGroups[i].group_info.name << std::endl;
|
||||||
|
#endif
|
||||||
|
|
||||||
EntryIndex e;
|
EntryIndex e;
|
||||||
e.type = ENTRY_TYPE_GROUP;
|
e.type = ENTRY_TYPE_GROUP;
|
||||||
|
@ -1077,7 +1087,9 @@ void RsFriendListModel::updateInternalData()
|
||||||
for(uint32_t i=0;i<mProfiles.size();++i)
|
for(uint32_t i=0;i<mProfiles.size();++i)
|
||||||
if(already_in_a_group.find(mProfiles[i].profile_info.gpg_id)==already_in_a_group.end())
|
if(already_in_a_group.find(mProfiles[i].profile_info.gpg_id)==already_in_a_group.end())
|
||||||
{
|
{
|
||||||
|
#ifdef DEBUG_MODEL
|
||||||
RsDbg() << " Profile " << mProfiles[i].profile_info.name << std::endl;
|
RsDbg() << " Profile " << mProfiles[i].profile_info.name << std::endl;
|
||||||
|
#endif
|
||||||
|
|
||||||
EntryIndex e;
|
EntryIndex e;
|
||||||
e.type = ENTRY_TYPE_PROFILE;
|
e.type = ENTRY_TYPE_PROFILE;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue