mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
VideoCommon: remove 'GetByteSizeInMemory()' from custom asset, it is not needed anymore
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user