From dd4f92d2896cd3e641b4bd6ae7ad6354078a7b0e Mon Sep 17 00:00:00 2001 From: sukibaby <163092272+sukibaby@users.noreply.github.com> Date: Wed, 10 Jul 2024 03:44:55 -0700 Subject: [PATCH] Remove COMPARE macro from TimingData.h --- src/TimingData.h | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/TimingData.h b/src/TimingData.h index 5fcd4d083f..0fa5c10e4d 100644 --- a/src/TimingData.h +++ b/src/TimingData.h @@ -12,9 +12,6 @@ struct lua_State; -/** @brief Compare a TimingData segment's properties with one another. */ -#define COMPARE(x) if(this->x!=other.x) return false; - /* convenience functions to handle static casting */ template inline T ToDerived( const TimingSegment *t, TimingSegmentType tst ) @@ -418,8 +415,7 @@ public: } } - COMPARE( m_fBeat0OffsetInSeconds ); - return true; + return this->m_fBeat0OffsetInSeconds == other.m_fBeat0OffsetInSeconds; } /** @@ -474,8 +470,6 @@ protected: std::array, NUM_TimingSegmentType> m_avpTimingSegments; }; -#undef COMPARE - #endif /**