yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #06274
[Branch ~yade-dev/yade/trunk] Rev 2569: Remove extra asserts to make Anton happier (sorry, forgotten stuff)
------------------------------------------------------------
revno: 2569
committer: Václav Šmilauer <eu@xxxxxxxx>
branch nick: yade
timestamp: Wed 2010-11-24 20:54:29 +0100
message:
Remove extra asserts to make Anton happier (sorry, forgotten stuff)
modified:
core/InteractionContainer.cpp
--
lp:yade
https://code.launchpad.net/~yade-dev/yade/trunk
Your team Yade developers is subscribed to branch lp:yade.
To unsubscribe from this branch go to https://code.launchpad.net/~yade-dev/yade/trunk/+edit-subscription
=== modified file 'core/InteractionContainer.cpp'
--- core/InteractionContainer.cpp 2010-11-24 16:31:33 +0000
+++ core/InteractionContainer.cpp 2010-11-24 19:54:29 +0000
@@ -64,9 +64,8 @@
const shared_ptr<Interaction>& InteractionContainer::find(Body::id_t id1,Body::id_t id2){
assert(bodies);
if (id1>id2) swap(id1,id2);
- assert(id1<bodies->size() && id2<bodies->size());
if(id1>=(Body::id_t)bodies->size()) { empty=shared_ptr<Interaction>(); return empty; }
- const shared_ptr<Body>& b1((*bodies)[id1]); assert(b1);
+ const shared_ptr<Body>& b1((*bodies)[id1]);
if(!b1) { empty=shared_ptr<Interaction>(); return empty; }
Body::MapId2IntrT::iterator I(b1->intrs.find(id2));
if (I!=b1->intrs.end()) return I->second;