[vlc-devel] commit: Remove --save-config ( Rémi Denis-Courmont )

git version control git at videolan.org
Sun Jan 17 21:29:22 CET 2010


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Jan 17 22:28:40 2010 +0200| [e49c41592564e2ce8da0ac6140003b2154fe6b12] | committer: Rémi Denis-Courmont 

Remove --save-config

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

 NEWS                |    1 +
 src/libvlc-module.c |    7 +------
 src/libvlc.c        |    6 ------
 3 files changed, 2 insertions(+), 12 deletions(-)

diff --git a/NEWS b/NEWS
index 30f616f..ee36e06 100644
--- a/NEWS
+++ b/NEWS
@@ -93,6 +93,7 @@ Maemo port:
 
 Misc:
  * new sqlite module
+ * --save-config command line option not supported anymore.
 
 Removed modules:
  * csri codec. Use libass module instead.
diff --git a/src/libvlc-module.c b/src/libvlc-module.c
index 97861ea..cde971b 100644
--- a/src/libvlc-module.c
+++ b/src/libvlc-module.c
@@ -2738,8 +2738,6 @@ vlc_module_begin ()
        "matches.")
 #define IGNORE_CONFIG_TEXT \
     N_("no configuration option will be loaded nor saved to config file")
-#define SAVE_CONFIG_TEXT \
-    N_("save the current command line options in the config")
 #define RESET_CONFIG_TEXT \
     N_("reset the current config to the default values")
 #define CONFIG_TEXT \
@@ -2779,10 +2777,7 @@ vlc_module_begin ()
     add_bool( "ignore-config", true, NULL, IGNORE_CONFIG_TEXT, "", false )
         change_internal ()
         change_unsaveable ()
-    add_bool( "save-config", false, NULL, SAVE_CONFIG_TEXT, "",
-              false )
-        change_internal ()
-        change_unsaveable ()
+    add_obsolete_bool( "save-config" )
     add_bool( "reset-config", false, NULL, RESET_CONFIG_TEXT, "", false )
         change_internal ()
         change_unsaveable ()
diff --git a/src/libvlc.c b/src/libvlc.c
index b0feac1..783cf5c 100644
--- a/src/libvlc.c
+++ b/src/libvlc.c
@@ -520,12 +520,6 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc,
             config_LoadCmdLine( p_libvlc, &i_argc, ppsz_argv, true );
             config_SaveConfigFile( p_libvlc, NULL );
         }
-        if( var_InheritBool( p_libvlc, "save-config" ) )
-        {
-            config_LoadConfigFile( p_libvlc, NULL );
-            config_LoadCmdLine( p_libvlc, &i_argc, ppsz_argv, true );
-            config_SaveConfigFile( p_libvlc, NULL );
-        }
     }
 
     if( module_count <= 1)




More information about the vlc-devel mailing list