mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-15 16:41:29 +00:00
Removal of test code
This commit is contained in:
parent
a5a660b828
commit
e4e40505b6
@ -7578,27 +7578,7 @@ void Client::JoinGroupXTargets(Group *g)
|
|||||||
if (!g)
|
if (!g)
|
||||||
return;
|
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()) {
|
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());
|
g->GetXTargetAutoMgr()->merge(*GetXTargetAutoMgr());
|
||||||
GetXTargetAutoMgr()->clear();
|
GetXTargetAutoMgr()->clear();
|
||||||
RemoveAutoXTargets();
|
RemoveAutoXTargets();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user