Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9fa1102b authored by Zach Johnson's avatar Zach Johnson
Browse files

Collapse HciLayer::GetAclQueueEnd()

Since the implementation is simple, move to the outer scope in HciLayer

Test: fuzz/run --host bluetooth_gd_hci_layer_fuzz_test
Change-Id: Ic42076bf896909b983a0d9fe4dbf7b2d7c1da56b
parent 019e1f59
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -316,10 +316,6 @@ struct HciLayer::impl : public hal::HciHalCallbacks {
    hci_timeout_alarm_->Schedule(BindOnce(&on_hci_timeout, op_code), kHciTimeoutMs);
  }

  BidiQueueEnd<AclPacketBuilder, AclPacketView>* GetAclQueueEnd() {
    return acl_queue_.GetUpEnd();
  }

  void RegisterEventHandler(EventCode event_code, Callback<void(EventPacketView)> event_handler, os::Handler* handler) {
    module_.CallOn(this, &impl::handle_register_event_handler, event_code, event_handler, common::Unretained(handler));
  }
@@ -406,7 +402,7 @@ void HciLayer::EnqueueCommand(std::unique_ptr<CommandPacketBuilder> command,
}

common::BidiQueueEnd<AclPacketBuilder, AclPacketView>* HciLayer::GetAclQueueEnd() {
  return impl_->GetAclQueueEnd();
  return impl_->acl_queue_.GetUpEnd();
}

void HciLayer::RegisterEventHandler(EventCode event_code, common::Callback<void(EventPacketView)> event_handler,