From f732b87def2e1af940d547548dd854b246e7b938 Mon Sep 17 00:00:00 2001 From: Giulio Eulisse <10544+ktf@users.noreply.github.com> Date: Sat, 21 Oct 2023 15:41:14 +0200 Subject: [PATCH] Drop unused variable The else clause at the end makes the postincrement impossible. --- fairmq/Device.cxx | 3 --- 1 file changed, 3 deletions(-) diff --git a/fairmq/Device.cxx b/fairmq/Device.cxx index ca05ee7e..1c287055 100644 --- a/fairmq/Device.cxx +++ b/fairmq/Device.cxx @@ -176,7 +176,6 @@ void Device::InitWrapper() // Fill the uninitialized channel containers for (auto& channel : GetChannels()) { - int subChannelIndex = 0; for (auto& subChannel : channel.second) { // set channel transport LOG(debug) << "Initializing transport for channel " << subChannel.fName << ": " << TransportNames.at(subChannel.fTransportType); @@ -208,8 +207,6 @@ void Device::InitWrapper() LOG(error) << "Cannot update configuration. Socket method (bind/connect) for channel '" << subChannel.fName << "' not specified."; throw runtime_error(tools::ToString("Cannot update configuration. Socket method (bind/connect) for channel ", subChannel.fName, " not specified.")); } - - subChannelIndex++; } }