summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/GraphicsModSystem
diff options
context:
space:
mode:
authormitaclaw <140017135+mitaclaw@users.noreply.github.com>2024-10-08 17:16:57 -0700
committermitaclaw <140017135+mitaclaw@users.noreply.github.com>2024-10-10 20:23:55 -0700
commite8d5fb89e4465e8ef64920f12e7cb60e82057658 (patch)
treeeda79c38cbe3b018b91038d642ccc48bcc9f93b8 /Source/Core/VideoCommon/GraphicsModSystem
parentb5f7a508742671410c44fc6f0e66d0ce789c3b57 (diff)
C++20: Synthesize `operator!=` From `operator==`
The inequality operator is automatically generated by the compiler if `operator==` is defined.
Diffstat (limited to 'Source/Core/VideoCommon/GraphicsModSystem')
-rw-r--r--Source/Core/VideoCommon/GraphicsModSystem/Runtime/FBInfo.cpp5
-rw-r--r--Source/Core/VideoCommon/GraphicsModSystem/Runtime/FBInfo.h1
2 files changed, 0 insertions, 6 deletions
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