Commit 9ca1eb42 authored by Youness Alaoui's avatar Youness Alaoui

remove stream_find_component_by_fd and component_find_socket_by_fd since they are unused

parent ae614812
...@@ -120,31 +120,6 @@ component_free (Component *cmp) ...@@ -120,31 +120,6 @@ component_free (Component *cmp)
g_slice_free (Component, cmp); g_slice_free (Component, cmp);
} }
/**
* Returns a component UDP socket struct that uses handle 'fd'.
*
* Note: there might be multiple sockets using the same
* handle.
*/
NiceSocket *
component_find_socket_by_fd (Component *component, guint fd)
{
GSList *i;
/* XXX: this won't work anymore, a single fd may be used
* by multiple candidates */
for (i = component->sockets; i; i = i->next)
{
NiceSocket *sockptr = i->data;
if (sockptr->fileno == fd)
return sockptr;
}
return NULL;
}
/** /**
* Finds a candidate pair that has matching foundation ids. * Finds a candidate pair that has matching foundation ids.
* *
......
...@@ -102,9 +102,6 @@ component_new ( ...@@ -102,9 +102,6 @@ component_new (
void void
component_free (Component *cmp); component_free (Component *cmp);
NiceSocket *
component_find_socket_by_fd (Component *component, guint fd);
gboolean gboolean
component_find_pair (Component *cmp, NiceAgent *agent, const gchar *lfoundation, const gchar *rfoundation, CandidatePair *pair); component_find_pair (Component *cmp, NiceAgent *agent, const gchar *lfoundation, const gchar *rfoundation, CandidatePair *pair);
......
...@@ -129,28 +129,6 @@ stream_all_components_ready (const Stream *stream) ...@@ -129,28 +129,6 @@ stream_all_components_ready (const Stream *stream)
} }
/**
* Returns the component that owns a socket using
* handle 'fd'.
*
* See also component_find_socket_by_fd()
*/
Component *
stream_find_component_by_fd (const Stream *stream, guint fd)
{
GSList *i;
for (i = stream->components; i; i = i->next) {
Component *component = i->data;
NiceSocket *socket =
component_find_socket_by_fd (component, fd);
if (socket)
return component;
}
return NULL;
}
/** /**
* Initialized the local crendentials for the stream. * Initialized the local crendentials for the stream.
*/ */
......
...@@ -97,9 +97,6 @@ stream_all_components_ready (const Stream *stream); ...@@ -97,9 +97,6 @@ stream_all_components_ready (const Stream *stream);
Component * Component *
stream_find_component_by_id (const Stream *stream, guint id); stream_find_component_by_id (const Stream *stream, guint id);
Component *
stream_find_component_by_fd (const Stream *stream, guint fd);
void void
stream_initialize_credentials (Stream *stream, NiceRNG *rng); stream_initialize_credentials (Stream *stream, NiceRNG *rng);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment