summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorLioncash <mai.iam2048@gmail.com>2023-12-11 19:34:55 -0500
committerLioncash <mai.iam2048@gmail.com>2023-12-11 19:39:55 -0500
commite011c3b38333605efa28a0adbf4ccdbda661cb47 (patch)
treea2c87c3f329102cfcbf5fa3dc06471219815a8b4 /Source/Core
parent6699acf10cb0a68108abbfb0ef8c9f08a3d07a89 (diff)
Core/SyncIdentifier: Default operator==
Lets us remove a bunch of code and a dependency on the <tuple> header.
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/Core/SyncIdentifier.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/Source/Core/Core/SyncIdentifier.h b/Source/Core/Core/SyncIdentifier.h
index 5e984476f9..197c363443 100644
--- a/Source/Core/Core/SyncIdentifier.h
+++ b/Source/Core/Core/SyncIdentifier.h
@@ -5,7 +5,6 @@
#include <array>
#include <string>
-#include <tuple>
#include "Common/CommonTypes.h"
@@ -26,12 +25,7 @@ struct SyncIdentifier
// The way the hash is calculated may change with updates to Dolphin.
std::array<u8, 20> sync_hash{};
- bool operator==(const SyncIdentifier& s) const
- {
- return std::tie(dol_elf_size, game_id, revision, disc_number, is_datel, sync_hash) ==
- std::tie(s.dol_elf_size, s.game_id, s.revision, s.disc_number, s.is_datel, s.sync_hash);
- }
- bool operator!=(const SyncIdentifier& s) const { return !operator==(s); }
+ bool operator==(const SyncIdentifier&) const = default;
};
// The order of entries in this enum matters, as the lowest value is