Commit 9697eabd authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Remove unused counter_t members

parent 5816597c
...@@ -122,10 +122,7 @@ struct counter_sample_t ...@@ -122,10 +122,7 @@ struct counter_sample_t
struct counter_t struct counter_t
{ {
unsigned int i_id;
char * psz_name;
int i_type; int i_type;
void * p_obj;
int i_compute_type; int i_compute_type;
int i_samples; int i_samples;
counter_sample_t ** pp_samples; counter_sample_t ** pp_samples;
......
...@@ -67,7 +67,6 @@ counter_t * stats_CounterCreate( vlc_object_t *p_this, ...@@ -67,7 +67,6 @@ counter_t * stats_CounterCreate( vlc_object_t *p_this,
p_counter->i_type = i_type; p_counter->i_type = i_type;
p_counter->i_samples = 0; p_counter->i_samples = 0;
p_counter->pp_samples = NULL; p_counter->pp_samples = NULL;
p_counter->psz_name = NULL;
p_counter->update_interval = 0; p_counter->update_interval = 0;
p_counter->last_update = 0; p_counter->last_update = 0;
...@@ -235,7 +234,6 @@ void stats_CounterClean( counter_t *p_c ) ...@@ -235,7 +234,6 @@ void stats_CounterClean( counter_t *p_c )
free( p_s ); free( p_s );
i--; i--;
} }
free( p_c->psz_name );
free( p_c ); free( p_c );
} }
} }
...@@ -317,10 +315,6 @@ static int CounterUpdate( vlc_object_t *p_handler, ...@@ -317,10 +315,6 @@ static int CounterUpdate( vlc_object_t *p_handler,
p_counter->pp_samples[0]->value.f_float += val.f_float; p_counter->pp_samples[0]->value.f_float += val.f_float;
if( new_val ) if( new_val )
new_val->f_float = p_counter->pp_samples[0]->value.f_float; new_val->f_float = p_counter->pp_samples[0]->value.f_float;
default:
msg_Err( p_handler, "Trying to increment invalid variable %s",
p_counter->psz_name );
return VLC_EGENERIC;
} }
} }
break; break;
......
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