From 0083d291985fce81e8a380e1d023bdb3c256cb51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADt=20Ku=C4=8Dera?= <26327373+vkucera@users.noreply.github.com> Date: Sat, 7 Nov 2026 18:59:54 +0100 Subject: [PATCH] Fix unused variables, parameters, values Fixes errors from the following Clang-Tidy categories: - `clang-analyzer-deadcode.DeadStores` - `clang-diagnostic-unused-parameter` - `clang-diagnostic-unused-variable` Most errors are fixed temporarily by commenting out the unused bits and by adding a `FIXME: unused` comment. The final fix is to either remove the unused bits or to fix the bugs which has to be done by someone who knows the intended behaviour. --- DPG/Tasks/AOTTrack/qaEfficiency.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/DPG/Tasks/AOTTrack/qaEfficiency.cxx b/DPG/Tasks/AOTTrack/qaEfficiency.cxx index 22d7b6b5497..c051ae4cc9e 100644 --- a/DPG/Tasks/AOTTrack/qaEfficiency.cxx +++ b/DPG/Tasks/AOTTrack/qaEfficiency.cxx @@ -1802,10 +1802,10 @@ struct QaEfficiency { } float centrality = -1.; float occupancy = -1.; - if (doOccupancy) { - centrality = getCentralityColl(groupedCollisions); - occupancy = getOccupancyColl(groupedCollisions); - } + // if (doOccupancy) { + // centrality = getCentralityColl(groupedCollisions); // FIXME: unused + // occupancy = getOccupancyColl(groupedCollisions); // FIXME: unused + // } histos.fill(HIST("MC/generatedCollisions"), 2); if (skipEventsWithoutTPCTracks) { int nTPCTracks = 0;