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

@ -86,8 +86,6 @@ public:
inline void setData(void* data) { _data = data; }
/** get the event code */
EventCode getEventCode() const { return _eventCode; };
static PhysicsContact* cast(EventCustom* event);
private:
static PhysicsContact* construct(PhysicsShape* a, PhysicsShape* b);