From 057884b0a56652dafdc0ba74df2f57eee5dd9f4d Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Sat, 27 Mar 2021 22:46:47 +0100 Subject: [PATCH] Remove unused parameter in angelscript addon. --- .../angelscript_addons/scripthandle/scripthandle.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/extern/angelscript_addons/scripthandle/scripthandle.cpp b/extern/angelscript_addons/scripthandle/scripthandle.cpp index df6cbbe..93f4fc6 100644 --- a/extern/angelscript_addons/scripthandle/scripthandle.cpp +++ b/extern/angelscript_addons/scripthandle/scripthandle.cpp @@ -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);