diff options
author | Jakub Adam <jakub.adam@collabora.com> | 2019-02-20 16:18:54 +0100 |
---|---|---|
committer | Olivier CrĂȘte <olivier.crete@ocrete.ca> | 2019-05-09 01:14:37 +0000 |
commit | c0321ff5bb04a2c8a8d2ec47780996e0180ac7fa (patch) | |
tree | fa33ed23e2a50340ce2fad2d7534cf685adf5462 | |
parent | 725f8af121231e14c72383c2f4ca58e1c340175d (diff) | |
download | libnice-c0321ff5bb04a2c8a8d2ec47780996e0180ac7fa.tar.gz |
discovery: Remove unused refresh_prune_socket()
-rw-r--r-- | agent/discovery.c | 16 | ||||
-rw-r--r-- | agent/discovery.h | 1 |
2 files changed, 0 insertions, 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); |