From e8d5fb89e4465e8ef64920f12e7cb60e82057658 Mon Sep 17 00:00:00 2001 From: mitaclaw <140017135+mitaclaw@users.noreply.github.com> Date: Tue, 8 Oct 2024 17:16:57 -0700 Subject: C++20: Synthesize `operator!=` From `operator==` The inequality operator is automatically generated by the compiler if `operator==` is defined. --- Source/Core/VideoCommon/GraphicsModSystem/Runtime/FBInfo.cpp | 5 ----- Source/Core/VideoCommon/GraphicsModSystem/Runtime/FBInfo.h | 1 - 2 files changed, 6 deletions(-) (limited to 'Source/Core/VideoCommon/GraphicsModSystem') diff --git a/Source/Core/VideoCommon/GraphicsModSystem/Runtime/FBInfo.cpp b/Source/Core/VideoCommon/GraphicsModSystem/Runtime/FBInfo.cpp index 5921c4a3e5..9325c7649e 100644 --- a/Source/Core/VideoCommon/GraphicsModSystem/Runtime/FBInfo.cpp +++ b/Source/Core/VideoCommon/GraphicsModSystem/Runtime/FBInfo.cpp @@ -15,8 +15,3 @@ bool FBInfo::operator==(const FBInfo& other) const return m_height == other.m_height && m_width == other.m_width && m_texture_format == other.m_texture_format; } - -bool FBInfo::operator!=(const FBInfo& other) const -{ - return !(*this == other); -} diff --git a/Source/Core/VideoCommon/GraphicsModSystem/Runtime/FBInfo.h b/Source/Core/VideoCommon/GraphicsModSystem/Runtime/FBInfo.h index 48106e3a2a..d4ab5b3d1c 100644 --- a/Source/Core/VideoCommon/GraphicsModSystem/Runtime/FBInfo.h +++ b/Source/Core/VideoCommon/GraphicsModSystem/Runtime/FBInfo.h @@ -13,7 +13,6 @@ struct FBInfo TextureFormat m_texture_format = TextureFormat::I4; u32 CalculateHash() const; bool operator==(const FBInfo& other) const; - bool operator!=(const FBInfo& other) const; }; struct FBInfoHasher -- cgit v1.2.3