diff options
| author | Admiral H. Curtiss <pikachu025@gmail.com> | 2024-02-03 02:38:02 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-03 02:38:02 +0100 |
| commit | df5baab873d596fb374f252e7f63860ee78ff77f (patch) | |
| tree | 8ab84a5373e8643256b40cdb4251d3b94a03ed0b /Source/Core/VideoCommon/VertexLoaderManager.cpp | |
| parent | 3b01531958f7f60f2efc683c7c1fc5de90cdae0d (diff) | |
| parent | 4f40bdf501882e7a22cafcfffe62e6c5b4daf875 (diff) | |
Merge pull request #12550 from lioncash/dead
VertexLoaderManager: Remove unused entry struct
Diffstat (limited to 'Source/Core/VideoCommon/VertexLoaderManager.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/VertexLoaderManager.cpp | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/Source/Core/VideoCommon/VertexLoaderManager.cpp b/Source/Core/VideoCommon/VertexLoaderManager.cpp index fb24803f1c..5da66c273d 100644 --- a/Source/Core/VideoCommon/VertexLoaderManager.cpp +++ b/Source/Core/VideoCommon/VertexLoaderManager.cpp @@ -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; |
