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

git version control git at videolan.org
Sun May 4 21:09:52 CEST 2008


vlc | branch: master | Rémi Denis-Courmont <rem at videolan.org> | Sun May  4 22:11:03 2008 +0300| [47ee4e3b557450e72e09605060682617e3739574]

Remove unused parameter

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

 src/config/configuration.h |    6 +++---
 src/config/core.c          |    6 +++---
 src/libvlc-common.c        |    6 +++---
 3 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/src/config/configuration.h b/src/config/configuration.h
index c754c8b..6bd34e5 100644
--- a/src/config/configuration.h
+++ b/src/config/configuration.h
@@ -44,9 +44,9 @@ void config_UnsetCallbacks( module_config_t *, size_t );
 
 int __config_LoadCmdLine   ( vlc_object_t *, int *, const char *[], bool );
 char *config_GetHomeDir    ( void );
-char *config_GetConfigDir  ( libvlc_int_t * );
-char *config_GetUserDataDir( libvlc_int_t * );
-char *config_GetCacheDir   ( libvlc_int_t * );
+char *config_GetConfigDir  ( void );
+char *config_GetUserDataDir( void );
+char *config_GetCacheDir   ( void );
 char *config_GetConfigFile ( libvlc_int_t * );
 char *config_GetCustomConfigFile( libvlc_int_t * );
 int __config_LoadConfigFile( vlc_object_t *, const char * );
diff --git a/src/config/core.c b/src/config/core.c
index 4992546..b114cb9 100644
--- a/src/config/core.c
+++ b/src/config/core.c
@@ -764,7 +764,7 @@ out:
 /**
  * Get the user's VLC configuration directory
  */
-char *config_GetConfigDir( libvlc_int_t *p_libvlc )
+char *config_GetConfigDir( void )
 {
     return config_GetFooDir ("CONFIG", ".config");
 }
@@ -773,7 +773,7 @@ char *config_GetConfigDir( libvlc_int_t *p_libvlc )
  * Get the user's VLC data directory
  * (used for stuff like the skins, custom lua modules, ...)
  */
-char *config_GetUserDataDir( libvlc_int_t *p_libvlc )
+char *config_GetUserDataDir( void )
 {
     return config_GetFooDir ("DATA", ".local/share");
 }
@@ -782,7 +782,7 @@ char *config_GetUserDataDir( libvlc_int_t *p_libvlc )
  * Get the user's VLC cache directory
  * (used for stuff like the modules cache, the album art cache, ...)
  */
-char *config_GetCacheDir( libvlc_int_t *p_libvlc )
+char *config_GetCacheDir( void )
 {
     return config_GetFooDir ("CACHE", ".cache");
 }
diff --git a/src/libvlc-common.c b/src/libvlc-common.c
index 145268e..59edcb4 100644
--- a/src/libvlc-common.c
+++ b/src/libvlc-common.c
@@ -301,9 +301,9 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc,
 
     /* Set the config file stuff */
     p_libvlc->psz_homedir    = config_GetHomeDir();
-    p_libvlc->psz_configdir  = config_GetConfigDir( p_libvlc );
-    p_libvlc->psz_datadir    = config_GetUserDataDir( p_libvlc );
-    p_libvlc->psz_cachedir   = config_GetCacheDir( p_libvlc );
+    p_libvlc->psz_configdir  = config_GetConfigDir();
+    p_libvlc->psz_datadir    = config_GetUserDataDir();
+    p_libvlc->psz_cachedir   = config_GetCacheDir();
     priv->psz_configfile = config_GetCustomConfigFile( p_libvlc );
 
     /* Check for plugins cache options */




More information about the vlc-devel mailing list