aboutsummaryrefslogtreecommitdiff
path: root/src/core/memory/cheat_engine.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2020-09-15 03:13:22 -0400
committerLioncash <mathew1800@gmail.com>2020-09-15 03:20:40 -0400
commit6711031e7d024e365a9a9f1e31626f26f40146da (patch)
tree40c3f27fd271cfd95314a7c56ffa25a38eb79a6f /src/core/memory/cheat_engine.cpp
parent5dbae278f464beaa29965e8df4e1c872750473ba (diff)
cheat_engine: Remove unnecessary system argument to CheatParser's Parse function
This isn't used within the function at all in any implementations, so we can remove it entirely.
Diffstat (limited to 'src/core/memory/cheat_engine.cpp')
-rw-r--r--src/core/memory/cheat_engine.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/core/memory/cheat_engine.cpp b/src/core/memory/cheat_engine.cpp
index e503118dde..68d09d3509 100644
--- a/src/core/memory/cheat_engine.cpp
+++ b/src/core/memory/cheat_engine.cpp
@@ -98,10 +98,9 @@ std::string_view ExtractName(std::string_view data, std::size_t start_index) {
}
} // Anonymous namespace
-std::vector<CheatEntry> TextCheatParser::Parse(const Core::System& system,
- std::string_view data) const {
+std::vector<CheatEntry> TextCheatParser::Parse(std::string_view data) const {
std::vector<CheatEntry> out(1);
- std::optional<u64> current_entry = std::nullopt;
+ std::optional<u64> current_entry;
for (std::size_t i = 0; i < data.size(); ++i) {
if (::isspace(data[i])) {