Removal of test code

This commit is contained in:
Uleat 2018-03-26 03:38:08 -04:00
parent a5a660b828
commit e4e40505b6

View File

@ -7578,27 +7578,7 @@ void Client::JoinGroupXTargets(Group *g)
if (!g)
return;
// test code for merge crashes - hopefully gcc won't optimize these out...
auto c1 = GetXTargetAutoMgr()->get_list().empty();
auto c2 = GetXTargetAutoMgr()->get_list().size();
auto c3 = GetXTargetAutoMgr()->get_list().begin();
auto c4 = GetXTargetAutoMgr()->get_list().end();
auto c5 = GetXTargetAutoMgr()->get_list().rbegin();
auto c6 = GetXTargetAutoMgr()->get_list().rend();
auto g1 = g->GetXTargetAutoMgr()->get_list().empty();
auto g2 = g->GetXTargetAutoMgr()->get_list().size();
auto g3 = g->GetXTargetAutoMgr()->get_list().begin();
auto g4 = g->GetXTargetAutoMgr()->get_list().end();
auto g5 = g->GetXTargetAutoMgr()->get_list().rbegin();
auto g6 = g->GetXTargetAutoMgr()->get_list().rend();
if (!GetXTargetAutoMgr()->empty()) {
Log(Logs::Detail, Logs::Error, "XTarget Merge[clt] empty=%s, size=%u, (begin==end)=%s, (rbegin==rend)=%s",
(c1?"true":"false"), c2, (c3==c4?"true":"false"), (c5==c6?"true":"false"));
Log(Logs::Detail, Logs::Error, "XTarget Merge[grp] empty=%s, size=%u, (begin==end)=%s, (rbegin==rend)=%s",
(g1?"true":"false"), g2, (g3==g4?"true":"false"), (g5==g6?"true":"false"));
g->GetXTargetAutoMgr()->merge(*GetXTargetAutoMgr());
GetXTargetAutoMgr()->clear();
RemoveAutoXTargets();