bluetooth: Fix Clang unused variable warnings
Generated by Gemini.
Bug: 315246135
Test: presubmit
Flag: EXEMPT, code cleanup
Change-Id: Iad3ad8358536d541a1ea1213ad94452e53d399a9
diff --git a/bluetooth/bluetooth_hal/config/firmware_config_loader.cc b/bluetooth/bluetooth_hal/config/firmware_config_loader.cc
index 1569132..cb740d4 100644
--- a/bluetooth/bluetooth_hal/config/firmware_config_loader.cc
+++ b/bluetooth/bluetooth_hal/config/firmware_config_loader.cc
@@ -549,8 +549,6 @@
}
bool is_launch_ram = (GetOpcode(std::span(header)) == launch_ram_opcode_);
- bool is_last_file = (static_cast<size_t>(current_firmware_file_index_) ==
- current_firmware_filenames_.size() - 1);
DataType packet_data_type = DataType::kDataFragment;
if (is_launch_ram) {
diff --git a/bluetooth/bluetooth_hal/hci_router.cc b/bluetooth/bluetooth_hal/hci_router.cc
index 7cfd1e6..8c21702 100644
--- a/bluetooth/bluetooth_hal/hci_router.cc
+++ b/bluetooth/bluetooth_hal/hci_router.cc
@@ -594,8 +594,6 @@
void HciRouterImpl::HandleCommandCompleteOrCommandStatusEvent(
const HalPacket& event) {
std::scoped_lock<std::recursive_mutex> lock(mutex_);
- uint16_t opcode = event.GetCommandOpcodeFromGeneratedEvent();
-
std::promise<std::shared_ptr<HalPacketCallback>> promise;
std::future<std::shared_ptr<HalPacketCallback>> future = promise.get_future();
tx_handler_->Post(TxTask::GetCommandCallback(event, std::move(promise)));