removed function (used only once)
authorHolger Schemel <info@artsoft.org>
Tue, 30 Apr 2024 20:27:00 +0000 (22:27 +0200)
committerHolger Schemel <info@artsoft.org>
Tue, 30 Apr 2024 20:27:00 +0000 (22:27 +0200)
src/game_bd/bd_caveset.c
src/game_bd/import_bd.h
src/tools.c
src/tools.h

index deb46a24793e8743d280cd3eb5a7bfe6b3d222f3..d83a1b97780a28b9c2eb7854e00a9f7ff4c81931 100644 (file)
@@ -129,7 +129,7 @@ void gd_caveset_clear(void)
   // always newly create this
   // create pseudo cave containing default values
   gd_caveset_data = gd_caveset_data_new();
-  gd_strcpy(gd_caveset_data->name, getCurrentLevelsetName());
+  gd_strcpy(gd_caveset_data->name, leveldir_current->name);
 }
 
 // return number of caves currently in memory.
index 3104c99b15b11506609ceabdcf8fe8bd22509c4e..199492ce01b643a888fbb4b4c472b95bb3987e75 100644 (file)
@@ -38,6 +38,4 @@ byte *TapePlayAction_BD(void);
 byte *TapeCorrectAction_BD(byte *);
 boolean TapeIsPlaying_ReplayBD(void);
 
-char *getCurrentLevelsetName(void);
-
 #endif // IMPORT_BD_H
index cca88c17e40621c47608430cd83cfd81db58aab6..954e7a63c83ed8adb95db77cbb2d981e77d4ba32 100644 (file)
@@ -11921,11 +11921,6 @@ void OpenURLFromHash(SetupFileHash *hash, int hash_key)
   OpenURL(getHashEntry(hash, int2str(hash_key, 0)));
 }
 
-char *getCurrentLevelsetName(void)
-{
-  return leveldir_current->name;
-}
-
 
 // ============================================================================
 // tests
index 112040052c8ddc9e6c5b817298656772f3cf123e..8774909b256e98b29389f701ac006647915987dd 100644 (file)
@@ -317,8 +317,6 @@ boolean CheckFadeAll(void);
 void OpenURL(char *);
 void OpenURLFromHash(SetupFileHash *, int);
 
-char *getCurrentLevelsetName(void);
-
 void TestGeneratingUUIDs(void);
 
 #endif // TOOLS_H