From 15ff8d64b6ac723a89a2a5ec118f92a119e4a329 Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Wed, 29 Mar 2023 20:15:32 -0400 Subject: [PATCH] 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. --- headers/os/net/NetworkDevice.h | 2 -- src/kits/network/libnetapi/NetworkDevice.cpp | 12 ------------ 2 files changed, 14 deletions(-) diff --git a/headers/os/net/NetworkDevice.h b/headers/os/net/NetworkDevice.h index 9c83dc17b9..2eb36fed09 100644 --- a/headers/os/net/NetworkDevice.h +++ b/headers/os/net/NetworkDevice.h @@ -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, diff --git a/src/kits/network/libnetapi/NetworkDevice.cpp b/src/kits/network/libnetapi/NetworkDevice.cpp index 31bbb5e7dc..b3beebdf04 100644 --- a/src/kits/network/libnetapi/NetworkDevice.cpp +++ b/src/kits/network/libnetapi/NetworkDevice.cpp @@ -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) {