VideoCommon: remove 'GetByteSizeInMemory()' from custom asset, it is not needed anymore

This commit is contained in:
iwubcode
2025-06-06 20:43:31 -05:00
parent 774a84a953
commit c3d3b81533
2 changed files with 4 additions and 11 deletions

View File

@ -3,6 +3,8 @@
#include "VideoCommon/Assets/CustomAsset.h"
#include <utility>
namespace VideoCommon
{
CustomAsset::CustomAsset(std::shared_ptr<CustomAssetLibrary> library,
@ -33,7 +35,7 @@ std::size_t CustomAsset::Unload()
{
std::lock_guard lk(m_info_lock);
UnloadImpl();
return m_bytes_loaded.exchange(0);
return std::exchange(m_bytes_loaded, 0);
}
CustomAsset::TimeType CustomAsset::GetLastLoadedTime() const
@ -51,9 +53,4 @@ const CustomAssetLibrary::AssetID& CustomAsset::GetAssetId() const
return m_asset_id;
}
std::size_t CustomAsset::GetByteSizeInMemory() const
{
return m_bytes_loaded;
}
} // namespace VideoCommon