From e011c3b38333605efa28a0adbf4ccdbda661cb47 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Mon, 11 Dec 2023 19:34:55 -0500 Subject: [PATCH] Core/SyncIdentifier: Default operator== Lets us remove a bunch of code and a dependency on the header. --- Source/Core/Core/SyncIdentifier.h | 8 +------- 1 file changed, 1 insertion(+), 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 #include -#include #include "Common/CommonTypes.h" @@ -26,12 +25,7 @@ struct SyncIdentifier // The way the hash is calculated may change with updates to Dolphin. std::array 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