Commit 98ab5ed7 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Remove write-only b_used property from cache entries

parent 754aeae1
......@@ -233,7 +233,6 @@ void CacheLoad( vlc_object_t *p_this, module_bank_t *p_bank, bool b_delete )
LOAD_STRING( pp_cache[i]->psz_file );
LOAD_IMMEDIATE( pp_cache[i]->i_time );
LOAD_IMMEDIATE( pp_cache[i]->i_size );
pp_cache[i]->b_used = false;
pp_cache[i]->p_module = vlc_module_create( p_this );
......
......@@ -951,8 +951,6 @@ static int AllocatePluginFile( vlc_object_t * p_this, module_bank_t *p_bank,
break;
}
}
if( p_module == p_cache_entry->p_module )
p_cache_entry->b_used = true;
}
if( p_module == NULL )
......@@ -982,7 +980,6 @@ static int AllocatePluginFile( vlc_object_t * p_this, module_bank_t *p_bank,
pp_cache[p_bank->i_cache]->psz_file = strdup( psz_file );
pp_cache[p_bank->i_cache]->i_time = i_file_time;
pp_cache[p_bank->i_cache]->i_size = i_file_size;
pp_cache[p_bank->i_cache]->b_used = true;
pp_cache[p_bank->i_cache]->p_module = p_module;
p_bank->pp_cache = pp_cache;
p_bank->i_cache++;
......
......@@ -65,7 +65,6 @@ struct module_cache_t
int64_t i_size;
/* Optional extra data */
bool b_used;
module_t *p_module;
};
......
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