diff --git a/source/common/audio/music/music.cpp b/source/common/audio/music/music.cpp index ae0174f10..683a6a02b 100644 --- a/source/common/audio/music/music.cpp +++ b/source/common/audio/music/music.cpp @@ -37,6 +37,7 @@ #include #include +#include #include "i_sound.h" @@ -65,19 +66,6 @@ static void S_ActivatePlayList(bool goBack); // PRIVATE DATA DEFINITIONS ------------------------------------------------ - // Test if a real file with this name exists with all known extensions for music. - for (auto& ext : knownMusicExts) - { - test.Format("%s.%s", name.GetChars(), ext); - if (FileExists(test)) return test; -#ifdef __unix__ - test.Format("%s.%s", name.GetChars(), FString(ext).MakeLower().GetChars()); - if (FileExists(test)) return test; -#endif - } - return defmusic; -} - static FileReader DefaultOpenMusic(const char* fn) {