aboutsummaryrefslogtreecommitdiff
path: root/src/core/memory/cheat_engine.h
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.h
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.h')
-rw-r--r--src/core/memory/cheat_engine.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/core/memory/cheat_engine.h b/src/core/memory/cheat_engine.h
index fa039a8317..a31002346d 100644
--- a/src/core/memory/cheat_engine.h
+++ b/src/core/memory/cheat_engine.h
@@ -47,8 +47,7 @@ class CheatParser {
public:
virtual ~CheatParser();
- virtual std::vector<CheatEntry> Parse(const Core::System& system,
- std::string_view data) const = 0;
+ [[nodiscard]] virtual std::vector<CheatEntry> Parse(std::string_view data) const = 0;
};
// CheatParser implementation that parses text files
@@ -56,7 +55,7 @@ class TextCheatParser final : public CheatParser {
public:
~TextCheatParser() override;
- std::vector<CheatEntry> Parse(const Core::System& system, std::string_view data) const override;
+ [[nodiscard]] std::vector<CheatEntry> Parse(std::string_view data) const override;
};
// Class that encapsulates a CheatList and manages its interaction with memory and CoreTiming