diff --git a/Engine/source/T3D/assets/SoundAsset.cpp b/Engine/source/T3D/assets/SoundAsset.cpp index 3b412d9ac..ed24bccba 100644 --- a/Engine/source/T3D/assets/SoundAsset.cpp +++ b/Engine/source/T3D/assets/SoundAsset.cpp @@ -456,24 +456,6 @@ U32 SoundAsset::load() return mLoadedState; } -bool SoundAsset::_setSoundFile(void* object, const char* index, const char* data) -{ - SoundAsset* pData = static_cast(object); - - U32 id = 0; - if (index) - id = dAtoui(index); - - // Update. - pData->mSoundFile[id] = StringTable->insert(data, true); - if (pData->mSoundFile[id] == StringTable->EmptyString()) - pData->mSoundPath[id] = StringTable->EmptyString(); - - // Refresh the asset. - pData->refreshAsset(); - return true; -} - bool SoundAsset::slotVisible(void* object, const char* index) { S32 idx = index ? dAtoi(index) : 0; diff --git a/Engine/source/T3D/assets/SoundAsset.h b/Engine/source/T3D/assets/SoundAsset.h index 9278203d9..5cc586aa0 100644 --- a/Engine/source/T3D/assets/SoundAsset.h +++ b/Engine/source/T3D/assets/SoundAsset.h @@ -160,8 +160,7 @@ public: /// Declare Console Object. DECLARE_CONOBJECT(SoundAsset); - - static bool _setSoundFile(void* object, const char* index, const char* data); + static bool slotVisible(void* object, const char* index); U32 load() override;