]> git.sesse.net Git - vlc/blobdiff - src/modules/cache.c
Remove always false b_junk cache entry property
[vlc] / src / modules / cache.c
index 6fa81b04f8fb2c4d1f85e00b9265b2745f6926e7..1e8c0ec09c338078693cac10316610d902a2c629 100644 (file)
@@ -58,7 +58,7 @@ static int    CacheLoadConfig  ( module_t *, FILE * );
 
 /* Sub-version number
  * (only used to avoid breakage in dev version when cache structure changes) */
-#define CACHE_SUBVERSION_NUM 8
+#define CACHE_SUBVERSION_NUM 9
 
 /* Format string for the cache filename */
 #define CACHENAME_FORMAT \
@@ -233,11 +233,8 @@ 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 );
-        LOAD_IMMEDIATE( pp_cache[i]->b_junk );
         pp_cache[i]->b_used = false;
 
-        if( pp_cache[i]->b_junk ) continue;
-
         pp_cache[i]->p_module = vlc_module_create( p_this );
 
         /* Load additional infos */
@@ -533,9 +530,6 @@ static int CacheSaveBank (FILE *file, module_bank_t *p_bank)
         SAVE_STRING( pp_cache[i]->psz_file );
         SAVE_IMMEDIATE( pp_cache[i]->i_time );
         SAVE_IMMEDIATE( pp_cache[i]->i_size );
-        SAVE_IMMEDIATE( pp_cache[i]->b_junk );
-
-        if( pp_cache[i]->b_junk ) continue;
 
         /* Save additional infos */
         SAVE_STRING( pp_cache[i]->p_module->psz_object_name );