aboutsummaryrefslogtreecommitdiff
path: root/src/core/file_sys/fsmitm_romfsbuild.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-09-25 18:14:29 -0400
committerLioncash <mathew1800@gmail.com>2018-09-25 20:06:21 -0400
commitb532635176f216f76de4a0fb6149a327edf1cc77 (patch)
tree23582920dad6be14635dfcdfe0e116311dcc3e68 /src/core/file_sys/fsmitm_romfsbuild.cpp
parentcb483ba942472170ba93c896109c5ef12bdea1ee (diff)
fsmitm_romfsbuild: Remove unnecessary loops in Build()
The std::vector instances are already initially allocated with all entries having these values, there's no need to loop through and fill them with it again when they aren't modified.
Diffstat (limited to 'src/core/file_sys/fsmitm_romfsbuild.cpp')
-rw-r--r--src/core/file_sys/fsmitm_romfsbuild.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/core/file_sys/fsmitm_romfsbuild.cpp b/src/core/file_sys/fsmitm_romfsbuild.cpp
index a8af5e14f3..b8807e5cad 100644
--- a/src/core/file_sys/fsmitm_romfsbuild.cpp
+++ b/src/core/file_sys/fsmitm_romfsbuild.cpp
@@ -233,12 +233,6 @@ std::map<u64, VirtualFile> RomFSBuildContext::Build() {
std::vector<u8> dir_table(dir_table_size);
std::vector<u8> file_table(file_table_size);
- // Clear out hash tables.
- for (u32 i = 0; i < dir_hash_table_entry_count; i++)
- dir_hash_table[i] = ROMFS_ENTRY_EMPTY;
- for (u32 i = 0; i < file_hash_table_entry_count; i++)
- file_hash_table[i] = ROMFS_ENTRY_EMPTY;
-
std::shared_ptr<RomFSBuildFileContext> cur_file;
// Determine file offsets.