Merge pull request #12550 from lioncash/dead

VertexLoaderManager: Remove unused entry struct
This commit is contained in:
Admiral H. Curtiss 2024-02-03 02:38:02 +01:00 committed by GitHub
commit df5baab873
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 14 deletions

View File

@ -64,10 +64,8 @@ bool g_needs_cp_xf_consistency_check;
void Init()
{
MarkAllDirty();
for (auto& map_entry : g_main_vertex_loaders)
map_entry = nullptr;
for (auto& map_entry : g_preprocess_vertex_loaders)
map_entry = nullptr;
g_main_vertex_loaders.fill(nullptr);
g_preprocess_vertex_loaders.fill(nullptr);
SETSTAT(g_stats.num_vertex_loaders, 0);
}
@ -118,16 +116,6 @@ void UpdateVertexArrayPointers()
g_bases_dirty = false;
}
namespace
{
struct entry
{
std::string text;
u64 num_verts;
bool operator<(const entry& other) const { return num_verts > other.num_verts; }
};
} // namespace
void MarkAllDirty()
{
g_bases_dirty = true;