From: Holger Schemel Date: Tue, 30 Apr 2024 20:27:00 +0000 (+0200) Subject: removed function (used only once) X-Git-Tag: 4.4.0.0-test-1~22 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=d12a9f8a999a1dd99737bb501d577813188ab268;p=rocksndiamonds.git removed function (used only once) --- diff --git a/src/game_bd/bd_caveset.c b/src/game_bd/bd_caveset.c index deb46a24..d83a1b97 100644 --- a/src/game_bd/bd_caveset.c +++ b/src/game_bd/bd_caveset.c @@ -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. diff --git a/src/game_bd/import_bd.h b/src/game_bd/import_bd.h index 3104c99b..199492ce 100644 --- a/src/game_bd/import_bd.h +++ b/src/game_bd/import_bd.h @@ -38,6 +38,4 @@ byte *TapePlayAction_BD(void); byte *TapeCorrectAction_BD(byte *); boolean TapeIsPlaying_ReplayBD(void); -char *getCurrentLevelsetName(void); - #endif // IMPORT_BD_H diff --git a/src/tools.c b/src/tools.c index cca88c17..954e7a63 100644 --- a/src/tools.c +++ b/src/tools.c @@ -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 diff --git a/src/tools.h b/src/tools.h index 11204005..8774909b 100644 --- a/src/tools.h +++ b/src/tools.h @@ -317,8 +317,6 @@ boolean CheckFadeAll(void); void OpenURL(char *); void OpenURLFromHash(SetupFileHash *, int); -char *getCurrentLevelsetName(void); - void TestGeneratingUUIDs(void); #endif // TOOLS_H