# HG changeset patch # User reimar # Date 1319570438 0 # Node ID 131d0e04a50b737d7171779484b93690c1c4b4ab # Parent 2487e0b0eaaf379df831c8695334a2593e87f8fd Remove completely pointless/nonsensical code. diff -r 2487e0b0eaaf -r 131d0e04a50b parser-mpcmd.c --- 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; }