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/TextureConfig.cpp | 5 ----- 1 file changed, 5 deletions(-) (limited to 'Source/Core/VideoCommon/TextureConfig.cpp') diff --git a/Source/Core/VideoCommon/TextureConfig.cpp b/Source/Core/VideoCommon/TextureConfig.cpp index 3d25eac017..dd1c3b9914 100644 --- a/Source/Core/VideoCommon/TextureConfig.cpp +++ b/Source/Core/VideoCommon/TextureConfig.cpp @@ -13,11 +13,6 @@ bool TextureConfig::operator==(const TextureConfig& o) const std::tie(o.width, o.height, o.levels, o.layers, o.samples, o.format, o.flags, o.type); } -bool TextureConfig::operator!=(const TextureConfig& o) const -{ - return !operator==(o); -} - MathUtil::Rectangle TextureConfig::GetRect() const { return {0, 0, static_cast(width), static_cast(height)}; -- cgit v1.2.3