From f723e03871b89ccb5783919b6ab7d9d5b584ef04 Mon Sep 17 00:00:00 2001 From: Ethan Lee Date: Sun, 26 Dec 2021 08:31:36 -0500 Subject: [PATCH] Remove unused MusicTrack constructor. This wouldn't work anyway since music would need to be loaded via physfs. --- desktop_version/src/SoundSystem.cpp | 11 ----------- desktop_version/src/SoundSystem.h | 1 - 2 files changed, 12 deletions(-) diff --git a/desktop_version/src/SoundSystem.cpp b/desktop_version/src/SoundSystem.cpp index 0727ecdc..5f7c0d1e 100644 --- a/desktop_version/src/SoundSystem.cpp +++ b/desktop_version/src/SoundSystem.cpp @@ -5,17 +5,6 @@ #include "FileSystemUtils.h" #include "Vlogging.h" -MusicTrack::MusicTrack(const char* fileName) -{ - m_music = Mix_LoadMUS(fileName); - m_isValid = true; - if(m_music == NULL) - { - vlog_error("Unable to load Ogg Music file: %s", Mix_GetError()); - m_isValid = false; - } -} - MusicTrack::MusicTrack(SDL_RWops *rw) { m_music = Mix_LoadMUS_RW(rw, 1); diff --git a/desktop_version/src/SoundSystem.h b/desktop_version/src/SoundSystem.h index 56eac366..e4bf49a5 100644 --- a/desktop_version/src/SoundSystem.h +++ b/desktop_version/src/SoundSystem.h @@ -6,7 +6,6 @@ class MusicTrack { public: - MusicTrack(const char* fileName); MusicTrack(SDL_RWops *rw); Mix_Music *m_music; bool m_isValid;