[vlc-devel] commit: Remove unused modules_t.b_reentrant ( Rémi Denis-Courmont )

git version control git at videolan.org
Wed Jan 6 21:29:36 CET 2010


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Jan  6 22:27:38 2010 +0200| [7feea9d3aa7525953a985ebfd7eb688dd3fdab0f] | committer: Rémi Denis-Courmont 

Remove unused modules_t.b_reentrant

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7feea9d3aa7525953a985ebfd7eb688dd3fdab0f
---

 src/modules/cache.c   |    6 +-----
 src/modules/entry.c   |    1 -
 src/modules/modules.h |    1 -
 3 files changed, 1 insertions(+), 7 deletions(-)

diff --git a/src/modules/cache.c b/src/modules/cache.c
index 4f3c34f..74d1258 100644
--- a/src/modules/cache.c
+++ b/src/modules/cache.c
@@ -84,7 +84,7 @@ static int    CacheSaveConfig  ( module_t *, FILE * );
 
 /* Sub-version number
  * (only used to avoid breakage in dev version when cache structure changes) */
-#define CACHE_SUBVERSION_NUM 5
+#define CACHE_SUBVERSION_NUM 6
 
 /* Format string for the cache filename */
 #define CACHENAME_FORMAT \
@@ -286,7 +286,6 @@ void CacheLoad( vlc_object_t *p_this, module_bank_t *p_bank, bool b_delete )
         LOAD_IMMEDIATE( pp_cache[i]->p_module->i_score );
         LOAD_IMMEDIATE( pp_cache[i]->p_module->i_cpu );
         LOAD_IMMEDIATE( pp_cache[i]->p_module->b_unloadable );
-        LOAD_IMMEDIATE( pp_cache[i]->p_module->b_reentrant );
         LOAD_IMMEDIATE( pp_cache[i]->p_module->b_submodule );
 
         /* Config stuff */
@@ -313,7 +312,6 @@ void CacheLoad( vlc_object_t *p_this, module_bank_t *p_bank, bool b_delete )
             LOAD_IMMEDIATE( p_module->i_score );
             LOAD_IMMEDIATE( p_module->i_cpu );
             LOAD_IMMEDIATE( p_module->b_unloadable );
-            LOAD_IMMEDIATE( p_module->b_reentrant );
         }
     }
 
@@ -566,7 +564,6 @@ void CacheSave( vlc_object_t *p_this, module_bank_t *p_bank )
         SAVE_IMMEDIATE( pp_cache[i]->p_module->i_score );
         SAVE_IMMEDIATE( pp_cache[i]->p_module->i_cpu );
         SAVE_IMMEDIATE( pp_cache[i]->p_module->b_unloadable );
-        SAVE_IMMEDIATE( pp_cache[i]->p_module->b_reentrant );
         SAVE_IMMEDIATE( pp_cache[i]->p_module->b_submodule );
 
         /* Config stuff */
@@ -626,7 +623,6 @@ static int CacheSaveSubmodule( FILE *file, module_t *p_module )
     SAVE_IMMEDIATE( p_module->i_score );
     SAVE_IMMEDIATE( p_module->i_cpu );
     SAVE_IMMEDIATE( p_module->b_unloadable );
-    SAVE_IMMEDIATE( p_module->b_reentrant );
     return 0;
 
 error:
diff --git a/src/modules/entry.c b/src/modules/entry.c
index a3679f1..68dff9f 100644
--- a/src/modules/entry.c
+++ b/src/modules/entry.c
@@ -67,7 +67,6 @@ module_t *vlc_module_create (vlc_object_t *obj)
     module->i_score = 1;
     module->i_cpu = 0;
     module->b_unloadable = true;
-    module->b_reentrant = true;
     module->b_submodule = false;
     module->pf_activate = NULL;
     module->pf_deactivate = NULL;
diff --git a/src/modules/modules.h b/src/modules/modules.h
index e1dfa2e..830cb9c 100644
--- a/src/modules/modules.h
+++ b/src/modules/modules.h
@@ -119,7 +119,6 @@ struct module_t
     uint32_t i_cpu;                           /**< Required CPU capabilities */
 
     bool b_unloadable;                        /**< Can we be dlclosed? */
-    bool b_reentrant;                           /**< Are we reentrant? */
     bool b_submodule;                        /**< Is this a submodule? */
 
     /* Callbacks */




More information about the vlc-devel mailing list