[MPlayer-cvslog] r34255 - trunk/parser-mpcmd.c

reimar subversion at mplayerhq.hu
Tue Oct 25 21:20:39 CEST 2011


Author: reimar
Date: Tue Oct 25 21:20:38 2011
New Revision: 34255

Log:
Remove completely pointless/nonsensical code.

Modified:
   trunk/parser-mpcmd.c

Modified: trunk/parser-mpcmd.c
==============================================================================
--- trunk/parser-mpcmd.c	Tue Oct 25 15:59:33 2011	(r34254)
+++ trunk/parser-mpcmd.c	Tue Oct 25 21:20:38 2011	(r34255)
@@ -38,7 +38,6 @@
 #include "parser-mpcmd.h"
 #include "osdep/macosx_finder_args.h"
 
-static int recursion_depth = 0;
 static int mode = 0;
 
 #define GLOBAL 0
@@ -108,8 +107,6 @@ m_config_parse_mp_command_line(m_config_
 #endif
 
   last_parent = root = play_tree_new();
-  /* in order to work recursion detection properly in parse_config_file */
-  ++recursion_depth;
 
   for (i = 1; i < argc; i++) {
     //next:
@@ -281,13 +278,11 @@ m_config_parse_mp_command_line(m_config_
 
   if (opt_exit)
     goto err_out;
-  --recursion_depth;
   if(last_parent != root)
     mp_msg(MSGT_CFGPARSER, MSGL_ERR,"Missing }- ?\n");
   return root;
 
  err_out:
-  --recursion_depth;
   play_tree_free(root,1);
   return NULL;
 }


More information about the MPlayer-cvslog mailing list