issue #2771: fix some code style

This commit is contained in:
boyu0 2013-11-01 16:32:27 +08:00
parent 2f67ceb495
commit a2adbff2c8
2 changed files with 0 additions and 16 deletions

View File

@ -730,15 +730,6 @@ Point PhysicsBody::local2World(const Point& point)
return PhysicsHelper::cpv2point(cpBodyLocal2World(_info->body, PhysicsHelper::point2cpv(point)));
}
//Clonable* PhysicsBody::clone() const
//{
// PhysicsBody* body = new PhysicsBody();
//
// body->autorelease();
//
// return body;
//}
#elif (CC_PHYSICS_ENGINE == CC_PHYSICS_BOX2D)

View File

@ -171,11 +171,6 @@ void PhysicsJoint::setCollisionEnable(bool enable)
if (_collisionEnable != enable)
{
_collisionEnable = enable;
// for (auto shape : _bodyB->_shapes)
// {
// shape->_info->setGroup(enable ? _bodyB->_info->group : _bodyA->_info->group);
// }
}
}
@ -245,8 +240,6 @@ bool PhysicsJointPin::init(PhysicsBody *a, PhysicsBody *b, const Point& anchr)
_info->add(joint);
//setCollisionEnable(false);
return true;
} while (false);