]> git.sesse.net Git - vlc/commitdiff
Remove write-only b_used property from cache entries
authorRémi Denis-Courmont <remi@remlab.net>
Wed, 27 Jan 2010 17:14:39 +0000 (19:14 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Wed, 27 Jan 2010 17:25:14 +0000 (19:25 +0200)
src/modules/cache.c
src/modules/modules.c
src/modules/modules.h

index 1e8c0ec09c338078693cac10316610d902a2c629..d9a3cee897859af1c8d79fd385f2c705a46a3319 100644 (file)
@@ -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 );
 
index 3651ddb146788a486c245ed5359cd078eb374d98..142e88a7dd530f0acb5243d89c54359d1ab68edc 100644 (file)
@@ -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++;
index d4600c4fd14222882807ab404ace9623f8cb59f0..88e7624d2dcc1d32afdd27f4c95f13074c19cc3c 100644 (file)
@@ -65,7 +65,6 @@ struct module_cache_t
     int64_t    i_size;
 
     /* Optional extra data */
-    bool b_used;
     module_t *p_module;
 };