diff mbox series

[v2,05/13] network: remove network_bss_list_clear

Message ID 20240808174236.218750-5-prestwoj@gmail.com (mailing list archive)
State New
Headers show
Series [v2,01/13] dbus: Add net.connman.iwd.BasicServiceSet interface | expand

Checks

Context Check Description
tedd_an/pre-ci_am success Success
prestwoj/iwd-ci-gitlint success GitLint

Commit Message

James Prestwood Aug. 8, 2024, 5:42 p.m. UTC
---
 src/network.c | 6 ------
 src/network.h | 2 +-
 2 files changed, 1 insertion(+), 7 deletions(-)
diff mbox series

Patch

diff --git a/src/network.c b/src/network.c
index 35e7ba4a..eff4117a 100644
--- a/src/network.c
+++ b/src/network.c
@@ -1276,12 +1276,6 @@  bool network_bss_list_isempty(struct network *network)
 	return l_queue_isempty(network->bss_list);
 }
 
-void network_bss_list_clear(struct network *network)
-{
-	l_queue_destroy(network->bss_list, NULL);
-	network->bss_list = l_queue_new();
-}
-
 struct scan_bss *network_bss_list_pop(struct network *network)
 {
 	struct scan_bss *bss = l_queue_pop_head(network->bss_list);
diff --git a/src/network.h b/src/network.h
index f27329a9..121404ef 100644
--- a/src/network.h
+++ b/src/network.h
@@ -74,7 +74,7 @@  bool network_bss_update(struct network *network, struct scan_bss *bss);
 const char *network_bss_get_path(const struct network *network,
 						const struct scan_bss *bss);
 bool network_bss_list_isempty(struct network *network);
-void network_bss_list_clear(struct network *network);
+
 struct scan_bss *network_bss_list_pop(struct network *network);
 struct scan_bss *network_bss_find_by_addr(struct network *network,
 							const uint8_t *addr);