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) {