diff options
| author | Lioncash <mathew1800@gmail.com> | 2020-09-15 03:13:22 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2020-09-15 03:20:40 -0400 |
| commit | ba7eb5abf4cd50b4dd1dc894bc633b678d38a1cb (patch) | |
| tree | 40c3f27fd271cfd95314a7c56ffa25a38eb79a6f /src/core/memory/cheat_engine.cpp | |
| parent | b5f4221c3dba29dad11897ac8d7860d773f359f1 (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.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/core/memory/cheat_engine.cpp b/src/core/memory/cheat_engine.cpp index e503118dd..68d09d350 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])) { |
