mirror of https://github.com/axmolengine/axmol.git
remove the workaround cast
This commit is contained in:
parent
a71367a7de
commit
3f62a87ef7
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue