changeset 34167:131d0e04a50b

Remove completely pointless/nonsensical code.
author reimar
date Tue, 25 Oct 2011 19:20:38 +0000
parents 2487e0b0eaaf
children 55abe5125482
files parser-mpcmd.c
diffstat 1 files changed, 0 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/parser-mpcmd.c	Tue Oct 25 13:59:33 2011 +0000
+++ b/parser-mpcmd.c	Tue Oct 25 19:20:38 2011 +0000
@@ -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 @@
 #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 @@
 
   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;
 }