From: Holger Schemel Date: Fri, 26 Feb 2021 09:22:41 +0000 (+0100) Subject: removed code which has no effect X-Git-Tag: 4.2.3.1~2 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=7c04ddc404bb1d13df41a1f808924f5f89c6749b;p=rocksndiamonds.git removed code which has no effect --- diff --git a/src/libgame/setup.c b/src/libgame/setup.c index 1895911f..9c21b95a 100644 --- a/src/libgame/setup.c +++ b/src/libgame/setup.c @@ -4546,7 +4546,6 @@ static void InitLastPlayedLevels_ParentNode(void) void UpdateLastPlayedLevels_TreeInfo(void) { char **last_level_series = setup.level_setup.last_level_series; - boolean reset_leveldir_current = FALSE; LevelDirTree *leveldir_last; TreeInfo **node_new = NULL; int i; @@ -4556,10 +4555,6 @@ void UpdateLastPlayedLevels_TreeInfo(void) InitLastPlayedLevels_ParentNode(); - // check if current level set is from "last played" sub-tree to be rebuilt - reset_leveldir_current = strEqual(leveldir_current->node_parent->identifier, - TOKEN_STR_LAST_LEVEL_SERIES); - leveldir_last = getTreeInfoFromIdentifierExt(leveldir_first, TOKEN_STR_LAST_LEVEL_SERIES, TREE_NODE_TYPE_GROUP); @@ -4593,10 +4588,6 @@ void UpdateLastPlayedLevels_TreeInfo(void) node_new = &((*node_new)->next); } - - if (reset_leveldir_current) - leveldir_current = getTreeInfoFromIdentifier(leveldir_first, - last_level_series[0]); } static void UpdateLastPlayedLevels_List(void)