removed code which has no effect
authorHolger Schemel <info@artsoft.org>
Fri, 26 Feb 2021 09:22:41 +0000 (10:22 +0100)
committerHolger Schemel <info@artsoft.org>
Fri, 26 Feb 2021 09:22:41 +0000 (10:22 +0100)
src/libgame/setup.c

index 1895911f1bdfe399c9f10eeab514dcff4732d88e..9c21b95ac4dd19a4e692780e60bbef679667251f 100644 (file)
@@ -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)