mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-09-21 20:06:40 +00:00
Remove the name of some unused arguments
Remove some usage of the `UNUSED` macro. Remove only those cases where the names can be deduced from their type. https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Rf-unused
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2024 Wildfire Games.
|
||||
/* Copyright (C) 2025 Wildfire Games.
|
||||
* This file is part of 0 A.D.
|
||||
*
|
||||
* 0 A.D. is free software: you can redistribute it and/or modify
|
||||
@@ -257,16 +257,14 @@ CModelRData* InstancingModelRenderer::CreateModelData(const void* key, CModel* m
|
||||
return new CModelRData(key);
|
||||
}
|
||||
|
||||
void InstancingModelRenderer::UpdateModelsData(
|
||||
Renderer::Backend::IDeviceCommandContext* UNUSED(deviceCommandContext),
|
||||
PS::span<CModel*> UNUSED(models))
|
||||
void InstancingModelRenderer::UpdateModelsData(Renderer::Backend::IDeviceCommandContext*,
|
||||
PS::span<CModel*>)
|
||||
{
|
||||
// We have no per-CModel data
|
||||
}
|
||||
|
||||
void InstancingModelRenderer::UploadModelsData(
|
||||
Renderer::Backend::IDeviceCommandContext* UNUSED(deviceCommandContext),
|
||||
PS::span<CModel*> UNUSED(models))
|
||||
void InstancingModelRenderer::UploadModelsData(Renderer::Backend::IDeviceCommandContext*,
|
||||
PS::span<CModel*>)
|
||||
{
|
||||
// Data uploaded once during creation as we don't update it dynamically.
|
||||
}
|
||||
@@ -292,9 +290,8 @@ void InstancingModelRenderer::PrepareModelDef(
|
||||
|
||||
|
||||
// Render one model
|
||||
void InstancingModelRenderer::RenderModel(
|
||||
Renderer::Backend::IDeviceCommandContext* deviceCommandContext,
|
||||
Renderer::Backend::IShaderProgram* UNUSED(shader), CModel* model, CModelRData* UNUSED(data))
|
||||
void InstancingModelRenderer::RenderModel(Renderer::Backend::IDeviceCommandContext* deviceCommandContext,
|
||||
Renderer::Backend::IShaderProgram*, CModel* model, CModelRData*)
|
||||
{
|
||||
const CModelDefPtr& mdldef = model->GetModelDef();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user