1
0
forked from mirrors/0ad

Remove UNUSED

The `UNUSED` macro is used to mark a variable as unused but with a name.
Those usages are replaced with comments so that `UNUSED` can be removed.

https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Rf-unused
This commit is contained in:
phosit
2025-06-03 14:13:41 +02:00
committed by phosit
parent dd26f3a802
commit 891908b801
127 changed files with 355 additions and 340 deletions
+2 -2
View File
@@ -73,7 +73,7 @@ FColladaErrorHandler::~FColladaErrorHandler()
FUError::RemoveErrorCallback(FUError::ERROR_LEVEL, this, &FColladaErrorHandler::OnError);
}
void FColladaErrorHandler::OnError(FUError::Level errorLevel, uint32 errorCode, uint32 UNUSED(lineNumber))
void FColladaErrorHandler::OnError(FUError::Level errorLevel, uint32 errorCode, uint32 /*lineNumber*/)
{
// Ignore warnings about missing materials, since we ignore materials entirely anyway
if (errorCode == FUError::WARNING_INVALID_POLYGON_MAT_SYMBOL)
@@ -111,7 +111,7 @@ void FColladaDocument::LoadFromText(const char *text)
REQUIRE_SUCCESS(status);
}
void FColladaDocument::ReadExtras(xmlNode* UNUSED(colladaNode))
void FColladaDocument::ReadExtras(xmlNode* /*colladaNode*/)
{
// TODO: This was needed to recognise and load XSI models.
// XSI support should be reintroduced some time, but this function