From d12a9f8a999a1dd99737bb501d577813188ab268 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Tue, 30 Apr 2024 22:27:00 +0200 Subject: [PATCH] removed function (used only once) --- src/game_bd/bd_caveset.c | 2 +- src/game_bd/import_bd.h | 2 -- src/tools.c | 5 ----- src/tools.h | 2 -- 4 files changed, 1 insertion(+), 10 deletions(-) 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 -- 2.34.1