Loading system/btif/src/btif_av.cc +0 −36 Original line number Diff line number Diff line Loading @@ -428,14 +428,6 @@ class BtifAvSource { */ bool AllowedToConnect(const RawAddress& peer_address) const; /** * Delete a peer. * * @param peer_address the peer to delete * @return true on success, otherwise false */ bool DeletePeer(const RawAddress& peer_address); /** * Delete all peers that have transitioned to Idle state and can be deleted. * If a peer was just created/initialized, then it cannot be deleted yet. Loading Loading @@ -666,14 +658,6 @@ class BtifAvSink { */ bool AllowedToConnect(const RawAddress& peer_address) const; /** * Delete a peer. * * @param peer_address the peer to delete * @return true on success, otherwise false */ bool DeletePeer(const RawAddress& peer_address); /** * Delete all peers that have transitioned to Idle state and can be deleted. * If a peer was just created/initialized, then it cannot be deleted yet. Loading Loading @@ -1372,16 +1356,6 @@ bool BtifAvSource::AllowedToConnect(const RawAddress& peer_address) const { return (connected < max_connected_peers_); } bool BtifAvSource::DeletePeer(const RawAddress& peer_address) { auto it = peers_.find(peer_address); if (it == peers_.end()) return false; BtifAvPeer* peer = it->second; peer->Cleanup(); peers_.erase(it); delete peer; return true; } void BtifAvSource::DeleteIdlePeers() { for (auto it = peers_.begin(); it != peers_.end();) { BtifAvPeer* peer = it->second; Loading Loading @@ -1638,16 +1612,6 @@ bool BtifAvSink::AllowedToConnect(const RawAddress& peer_address) const { return (connected < max_connected_peers_); } bool BtifAvSink::DeletePeer(const RawAddress& peer_address) { auto it = peers_.find(peer_address); if (it == peers_.end()) return false; BtifAvPeer* peer = it->second; peer->Cleanup(); peers_.erase(it); delete peer; return true; } void BtifAvSink::DeleteIdlePeers() { for (auto it = peers_.begin(); it != peers_.end();) { BtifAvPeer* peer = it->second; Loading Loading
system/btif/src/btif_av.cc +0 −36 Original line number Diff line number Diff line Loading @@ -428,14 +428,6 @@ class BtifAvSource { */ bool AllowedToConnect(const RawAddress& peer_address) const; /** * Delete a peer. * * @param peer_address the peer to delete * @return true on success, otherwise false */ bool DeletePeer(const RawAddress& peer_address); /** * Delete all peers that have transitioned to Idle state and can be deleted. * If a peer was just created/initialized, then it cannot be deleted yet. Loading Loading @@ -666,14 +658,6 @@ class BtifAvSink { */ bool AllowedToConnect(const RawAddress& peer_address) const; /** * Delete a peer. * * @param peer_address the peer to delete * @return true on success, otherwise false */ bool DeletePeer(const RawAddress& peer_address); /** * Delete all peers that have transitioned to Idle state and can be deleted. * If a peer was just created/initialized, then it cannot be deleted yet. Loading Loading @@ -1372,16 +1356,6 @@ bool BtifAvSource::AllowedToConnect(const RawAddress& peer_address) const { return (connected < max_connected_peers_); } bool BtifAvSource::DeletePeer(const RawAddress& peer_address) { auto it = peers_.find(peer_address); if (it == peers_.end()) return false; BtifAvPeer* peer = it->second; peer->Cleanup(); peers_.erase(it); delete peer; return true; } void BtifAvSource::DeleteIdlePeers() { for (auto it = peers_.begin(); it != peers_.end();) { BtifAvPeer* peer = it->second; Loading Loading @@ -1638,16 +1612,6 @@ bool BtifAvSink::AllowedToConnect(const RawAddress& peer_address) const { return (connected < max_connected_peers_); } bool BtifAvSink::DeletePeer(const RawAddress& peer_address) { auto it = peers_.find(peer_address); if (it == peers_.end()) return false; BtifAvPeer* peer = it->second; peer->Cleanup(); peers_.erase(it); delete peer; return true; } void BtifAvSink::DeleteIdlePeers() { for (auto it = peers_.begin(); it != peers_.end();) { BtifAvPeer* peer = it->second; Loading