Remove COMPARE macro from TimingData.h

This commit is contained in:
sukibaby
2024-07-10 10:45:48 -07:00
committed by teejusb
parent bc65d16c4a
commit dd4f92d289
+1 -7
View File
@@ -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<class T>
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<std::vector<TimingSegment *>, NUM_TimingSegmentType> m_avpTimingSegments;
};
#undef COMPARE
#endif
/**