Remove dead code
This commit is contained in:
parent
dfcba91cea
commit
da9e6d1fd6
2 changed files with 0 additions and 49 deletions
|
@ -64,8 +64,6 @@ transport_stop(th_transport_t *t)
|
|||
|
||||
gtimer_disarm(&t->tht_receive_timer);
|
||||
|
||||
// dtimer_disarm(&transport_monitor_timer, transport_monitor, t, 1);
|
||||
|
||||
t->tht_stop_feed(t);
|
||||
|
||||
pthread_mutex_lock(&t->tht_stream_mutex);
|
||||
|
@ -151,47 +149,6 @@ transport_remove_subscriber(th_transport_t *t, th_subscription_t *s)
|
|||
transport_stop(t);
|
||||
}
|
||||
|
||||
#if 0
|
||||
/**
|
||||
*
|
||||
*/
|
||||
void
|
||||
transport_link_muxer(th_transport_t *t, th_muxer_t *tm)
|
||||
{
|
||||
lock_assert(&global_lock);
|
||||
|
||||
if(tm->tm_transport != NULL) {
|
||||
assert(tm->tm_transport == t);
|
||||
return;
|
||||
}
|
||||
|
||||
pthread_mutex_lock(&t->tht_stream_mutex);
|
||||
LIST_INSERT_HEAD(&t->tht_muxers, tm, tm_transport_link);
|
||||
pthread_mutex_unlock(&t->tht_stream_mutex);
|
||||
tm->tm_transport = t;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
void
|
||||
transport_unlink_muxer(th_muxer_t *tm)
|
||||
{
|
||||
th_transport_t *t = tm->tm_transport;
|
||||
|
||||
if(t == NULL)
|
||||
return;
|
||||
|
||||
lock_assert(&global_lock);
|
||||
|
||||
pthread_mutex_lock(&t->tht_stream_mutex);
|
||||
LIST_REMOVE(tm, tm_transport_link);
|
||||
pthread_mutex_unlock(&t->tht_stream_mutex);
|
||||
tm->tm_transport = NULL;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
|
@ -439,8 +396,6 @@ transport_destroy(th_transport_t *t)
|
|||
subscription_unlink_transport(s);
|
||||
}
|
||||
|
||||
//dtimer_disarm(&t->tht_receive_timer);
|
||||
|
||||
free((void *)t->tht_name);
|
||||
|
||||
if(t->tht_ch != NULL) {
|
||||
|
|
|
@ -64,10 +64,6 @@ const char *transport_feed_status_to_text(transport_feed_status_t status);
|
|||
|
||||
void transport_remove_subscriber(th_transport_t *t, th_subscription_t *s);
|
||||
|
||||
//void transport_link_muxer(th_transport_t *t, th_muxer_t *tm);
|
||||
|
||||
//void transport_unlink_muxer(th_muxer_t *tm);
|
||||
|
||||
static inline th_stream_t *
|
||||
transport_find_stream_by_pid(th_transport_t *t, int pid)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue