Remove unused parameter in angelscript addon.
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
78268c51c0
commit
057884b0a5
|
@ -33,7 +33,7 @@ CScriptHandle::CScriptHandle(void *ref, asITypeInfo *type)
|
|||
AddRefHandle();
|
||||
}
|
||||
|
||||
// This constructor shouldn't be called from the application
|
||||
// This constructor shouldn't be called from the application
|
||||
// directly as it requires an active script context
|
||||
CScriptHandle::CScriptHandle(void *ref, int typeId)
|
||||
{
|
||||
|
@ -111,7 +111,7 @@ int CScriptHandle::GetTypeId() const
|
|||
return m_type->GetTypeId() | asTYPEID_OBJHANDLE;
|
||||
}
|
||||
|
||||
// This method shouldn't be called from the application
|
||||
// This method shouldn't be called from the application
|
||||
// directly as it requires an active script context
|
||||
CScriptHandle &CScriptHandle::Assign(void *ref, int typeId)
|
||||
{
|
||||
|
@ -179,7 +179,7 @@ bool CScriptHandle::Equals(void *ref, int typeId) const
|
|||
typeId &= ~asTYPEID_OBJHANDLE;
|
||||
}
|
||||
|
||||
// TODO: If typeId is not the same, we should attempt to do a dynamic cast,
|
||||
// TODO: If typeId is not the same, we should attempt to do a dynamic cast,
|
||||
// which may change the pointer for application registered classes
|
||||
|
||||
if( ref == m_ref ) return true;
|
||||
|
@ -196,7 +196,7 @@ void CScriptHandle::Cast(void **outRef, int typeId)
|
|||
*outRef = 0;
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
// It is expected that the outRef is always a handle
|
||||
assert( typeId & asTYPEID_OBJHANDLE );
|
||||
|
||||
|
@ -222,7 +222,7 @@ void CScriptHandle::EnumReferences(asIScriptEngine *inEngine)
|
|||
inEngine->GCEnumCallback(m_type);
|
||||
}
|
||||
|
||||
void CScriptHandle::ReleaseReferences(asIScriptEngine *inEngine)
|
||||
void CScriptHandle::ReleaseReferences(asIScriptEngine *)
|
||||
{
|
||||
// Simply clear the content to release the references
|
||||
Set(0, 0);
|
||||
|
|
Loading…
Reference in New Issue