From c0321ff5bb04a2c8a8d2ec47780996e0180ac7fa Mon Sep 17 00:00:00 2001 From: Jakub Adam Date: Wed, 20 Feb 2019 16:18:54 +0100 Subject: discovery: Remove unused refresh_prune_socket() --- agent/discovery.c | 16 ---------------- agent/discovery.h | 1 - 2 files changed, 17 deletions(-) diff --git a/agent/discovery.c b/agent/discovery.c index 40a6c09..c54ba7d 100644 --- a/agent/discovery.c +++ b/agent/discovery.c @@ -274,22 +274,6 @@ void refresh_prune_candidate (NiceAgent *agent, NiceCandidate *candidate) } } -void refresh_prune_socket (NiceAgent *agent, NiceSocket *sock) -{ - GSList *i; - - for (i = agent->refresh_list; i;) { - GSList *next = i->next; - CandidateRefresh *refresh = i->data; - - if (refresh->nicesock == sock) { - refresh_free_item (agent, refresh); - } - - i = next; - } -} - void refresh_cancel (NiceAgent *agent, CandidateRefresh *refresh) { refresh_free_item (agent, refresh); diff --git a/agent/discovery.h b/agent/discovery.h index fbf1c42..436d0ec 100644 --- a/agent/discovery.h +++ b/agent/discovery.h @@ -83,7 +83,6 @@ typedef struct void refresh_free (NiceAgent *agent); void refresh_prune_stream (NiceAgent *agent, guint stream_id); void refresh_prune_candidate (NiceAgent *agent, NiceCandidate *candidate); -void refresh_prune_socket (NiceAgent *agent, NiceSocket *sock); void refresh_cancel (NiceAgent *agent, CandidateRefresh *refresh); -- cgit v1.2.1