From 4c7a4831cb44c22cceb11ab60d22eabaa378a0c0 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Mon, 11 Dec 2023 22:00:37 -0500 Subject: [PATCH] CustomAssetLibrary: Remove unused GetAssetSize() function There's a direct analogue of this function within DirectFilesystemAssetLibrary that *is* used, however, so we can get rid of this one. --- .../VideoCommon/Assets/CustomAssetLibrary.cpp | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/Source/Core/VideoCommon/Assets/CustomAssetLibrary.cpp b/Source/Core/VideoCommon/Assets/CustomAssetLibrary.cpp index 7b6420088f..4446f602e8 100644 --- a/Source/Core/VideoCommon/Assets/CustomAssetLibrary.cpp +++ b/Source/Core/VideoCommon/Assets/CustomAssetLibrary.cpp @@ -10,21 +10,6 @@ namespace VideoCommon { -namespace -{ -std::size_t GetAssetSize(const CustomTextureData& data) -{ - std::size_t total = 0; - for (const auto& slice : data.m_slices) - { - for (const auto& level : slice.m_levels) - { - total += level.data.size(); - } - } - return total; -} -} // namespace CustomAssetLibrary::LoadInfo CustomAssetLibrary::LoadGameTexture(const AssetID& asset_id, TextureData* data) {