cosmetics: removed dead code

This commit is contained in:
John Törnblom 2013-01-07 11:45:21 +01:00
parent 39a74172ad
commit d9b2a2cdbd
2 changed files with 1 additions and 5 deletions

View file

@ -339,7 +339,6 @@ typedef struct service {
* Teletext... * Teletext...
*/ */
th_commercial_advice_t s_tt_commercial_advice; th_commercial_advice_t s_tt_commercial_advice;
int s_tt_rundown_content_length;
time_t s_tt_clock; /* Network clock as determined by teletext decoder */ time_t s_tt_clock; /* Network clock as determined by teletext decoder */
/** /**

View file

@ -534,7 +534,7 @@ teletext_rundown_scan(service_t *t, tt_private_t *ttp)
{ {
int i; int i;
uint8_t *l; uint8_t *l;
time_t now = t->s_tt_clock, start, stop, last = 0; time_t now = t->s_tt_clock, start, stop;
th_commercial_advice_t ca; th_commercial_advice_t ca;
if(ttp->ttp_rundown_valid == 0) if(ttp->ttp_rundown_valid == 0)
@ -555,8 +555,5 @@ teletext_rundown_scan(service_t *t, tt_private_t *ttp)
if(start <= now && stop > now) if(start <= now && stop > now)
t->s_tt_commercial_advice = ca; t->s_tt_commercial_advice = ca;
if(start > now && ca != t->s_tt_commercial_advice && last == 0)
last = start;
} }
} }