diff options
author | Lioncash <mathew1800@gmail.com> | 2019-06-12 18:12:41 -0400 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2019-06-12 18:12:45 -0400 |
commit | 18c1d9192076fcb469085b8a87cdb81c7470a059 (patch) | |
tree | 91b55fae28170e0e7ecace171c92b58dccc32bd7 /src | |
parent | 7e2bcf04b471579054424fd26746826747c0d335 (diff) |
file_sys/ips_layer: Remove unnecessary reserve() call
Given 'replace' is assigned to on the following line, this isn't
necessary, given the underlying data is going to be overwritten
entirely.
Diffstat (limited to 'src')
-rw-r--r-- | src/core/file_sys/ips_layer.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/core/file_sys/ips_layer.cpp b/src/core/file_sys/ips_layer.cpp index 485c4913a..2635acb9c 100644 --- a/src/core/file_sys/ips_layer.cpp +++ b/src/core/file_sys/ips_layer.cpp @@ -287,7 +287,6 @@ void IPSwitchCompiler::Parse() { } else { // hex replacement const auto value = patch_line.substr(9); - replace.reserve(value.size() / 2); replace = Common::HexStringToVector(value, is_little_endian); } |