BNetworkDevice: Remove GetNextNetwork.

As far as I can tell, it has no consumers whatsoever outside the tree.
(wpa_supplicant did not even use it.) So, remove it altogether.

If that turns out to be mistaken, we can reinstate it temporarily
as a private class function or ABI-only symbol.
This commit is contained in:
Augustin Cavalier 2023-03-29 20:15:32 -04:00
parent 11a8223711
commit 15ff8d64b6
2 changed files with 0 additions and 14 deletions

View File

@ -112,8 +112,6 @@ public:
status_t Scan(bool wait = true,
bool forceRescan = true);
status_t GetNextNetwork(uint32& cookie,
wireless_network& network);
status_t GetNetworks(wireless_network*& networks,
uint32& count);
status_t GetNetwork(const char* name,

View File

@ -829,18 +829,6 @@ BNetworkDevice::Scan(bool wait, bool forceRescan)
}
status_t
BNetworkDevice::GetNextNetwork(uint32& cookie, wireless_network& network)
{
status_t status = get_scan_result(Name(), network, cookie, NULL, NULL);
if (status != B_OK)
return status;
cookie++;
return B_OK;
}
status_t
BNetworkDevice::GetNetworks(wireless_network*& networks, uint32& count)
{