Skip to content

Commit

Permalink
pw_bluetooth_proxy: Remove temp allocators from proxy proxy_host
Browse files Browse the repository at this point in the history
No longer needed now that http://pwrev.dev/254554 removed the old
acquire that didn't take an allocator.

Bug: 369849508
Change-Id: I380232f48497cded4ead8971d57e64368bcace58
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/256452
Reviewed-by: Ali Saeed <[email protected]>
Presubmit-Verified: CQ Bot Account <[email protected]>
Docs-Not-Needed: David Rees <[email protected]>
Commit-Queue: David Rees <[email protected]>
Lint: Lint 🤖 <[email protected]>
  • Loading branch information
studgeek authored and CQ Bot Account committed Dec 24, 2024
1 parent 2e04aa4 commit 8be090f
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions pw_bluetooth_proxy/public/pw_bluetooth_proxy/proxy_host.h
Original file line number Diff line number Diff line change
Expand Up @@ -345,20 +345,6 @@ class ProxyHost {

// Keeps track of the L2CAP-based channels managed by the proxy.
L2capChannelManager l2cap_channel_manager_;

// Multibuf allocator to be used if container/client didn't provide an
// allocator. Being used during short transition to allocators being provided
// by downstreams. Only lsc_multibuf_allocator_ is used in code, the rest are
// just backing it.
// TODO: https://pwbug.dev/369849508 - Remove once all containers and clients
// provide allocators.
std::array<std::byte, 300> lsc_alloc_mem_;
pw::allocator::BestFitAllocator<> lsc_bf_allocator_{lsc_alloc_mem_};
pw::allocator::SynchronizedAllocator<pw::sync::Mutex> lsc_sync_allocator_{
lsc_bf_allocator_};
std::array<std::byte, 1000> lsc_multibuf_mem_;
pw::multibuf::SimpleAllocator lsc_multibuf_allocator_{lsc_multibuf_mem_,
lsc_sync_allocator_};
};

} // namespace pw::bluetooth::proxy

0 comments on commit 8be090f

Please sign in to comment.