remove the workaround cast

This commit is contained in:
edwardzhou 2014-01-15 09:46:41 +08:00
parent a71367a7de
commit 3f62a87ef7
2 changed files with 0 additions and 7 deletions

View File

@ -71,11 +71,6 @@ PhysicsContact* PhysicsContact::construct(PhysicsShape* a, PhysicsShape* b)
return nullptr;
}
PhysicsContact* PhysicsContact::cast(EventCustom* event) {
PhysicsContact* contact = static_cast<PhysicsContact*>(event);
return contact;
}
bool PhysicsContact::init(PhysicsShape* a, PhysicsShape* b)
{
do

View File

@ -87,8 +87,6 @@ public:
/** get the event code */
EventCode getEventCode() const { return _eventCode; };
static PhysicsContact* cast(EventCustom* event);
private:
static PhysicsContact* construct(PhysicsShape* a, PhysicsShape* b);
bool init(PhysicsShape* a, PhysicsShape* b);