More set but not used avoidance

master
Beq 2025-08-10 16:37:04 +01:00
parent 13fdb12d24
commit ebc2679892
1 changed files with 4 additions and 4 deletions

View File

@ -2262,7 +2262,7 @@ void LLVoiceWebRTCConnection::processIceUpdatesCoro(connectionPtr_t connection)
return;
}
bool iceCompleted = false;
// bool iceCompleted = false; // <FS:Beq/> Set but not used
LLSD body;
if (!connection->mIceCandidates.empty() || connection->mIceCompleted)
{
@ -2301,7 +2301,7 @@ void LLVoiceWebRTCConnection::processIceUpdatesCoro(connectionPtr_t connection)
LLSD body_candidate;
body_candidate["completed"] = true;
body["candidate"] = body_candidate;
iceCompleted = connection->mIceCompleted;
// iceCompleted = connection->mIceCompleted; // <FS:Beq/> Set but not used
connection->mIceCompleted = false;
}
@ -2926,7 +2926,7 @@ void LLVoiceWebRTCConnection::OnDataReceivedImpl(const std::string &data, bool b
return;
}
boost::json::object voice_data = voice_data_parsed.as_object();
bool new_participant = false;
// bool new_participant = false; // <FS:Beq/> Set but not used
boost::json::object mute;
boost::json::object user_gain;
for (auto &participant_elem : voice_data)
@ -2979,7 +2979,7 @@ void LLVoiceWebRTCConnection::OnDataReceivedImpl(const std::string &data, bool b
}
}
new_participant |= joined;
// new_participant |= joined; // <FS:Beq/> Set but not used
if (!participant && joined && (primary || !isSpatial()))
{
participant = LLWebRTCVoiceClient::getInstance()->addParticipantByID(mChannelID, agent_id, mRegionID);