[vlc-devel] commit: Inline config_GetUserDir ( Rémi Denis-Courmont )

git version control git at videolan.org
Mon May 5 22:40:11 CEST 2008


vlc | branch: master | Rémi Denis-Courmont <rem at videolan.org> | Mon May  5 22:51:21 2008 +0300| [5cd6f2851ede7865a1f3e2c3479344a39082391f]

Inline config_GetUserDir

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

 src/config/core.c |   14 +-------------
 1 files changed, 1 insertions(+), 13 deletions(-)

diff --git a/src/config/core.c b/src/config/core.c
index 6d96c85..611a852 100644
--- a/src/config/core.c
+++ b/src/config/core.c
@@ -675,23 +675,11 @@ char *config_GetHomeDir( void )
     return GetDir( false );
 }
 
-/**
- * Get the user's main data and config directory:
- *   - on windows that's the App Data directory;
- *   - on other OSes it's the same as the home directory.
- */
-char *config_GetUserDir( void ); /* XXX why does gcc wants a declaration ?
-                                  * --funman */
-char *config_GetUserDir( void )
-{
-    return GetDir( true );
-}
-
 static char *config_GetFooDir (const char *xdg_name, const char *xdg_default)
 {
     char *psz_dir;
 #if defined(WIN32) || defined(__APPLE__) || defined(SYS_BEOS)
-    char *psz_parent = config_GetUserDir();
+    char *psz_parent = GetDir (true);
 
     if( asprintf( &psz_dir, "%s" DIR_SEP CONFIG_DIR, psz_parent ) == -1 )
         psz_dir = NULL;




More information about the vlc-devel mailing list