From f107356d13067b87ff32c423431ab4a4e0d47ffe Mon Sep 17 00:00:00 2001 From: Tom Fischer <thomas.fischer@ufz.de> Date: Fri, 30 Aug 2024 14:12:13 +0200 Subject: [PATCH] [NL|TimeStep] Remove unused comparisons --- NumLib/TimeStepping/TimeStep.h | 15 --------------- Tests/NumLib/TestTimeStep.cpp | 2 +- 2 files changed, 1 insertion(+), 16 deletions(-) diff --git a/NumLib/TimeStepping/TimeStep.h b/NumLib/TimeStepping/TimeStep.h index f05c8d1d4fd..23c6627951d 100644 --- a/NumLib/TimeStepping/TimeStep.h +++ b/NumLib/TimeStepping/TimeStep.h @@ -72,21 +72,6 @@ public: return *this; } - /// compare current time - bool operator<(TimeStep const& ts) const - { - return (_current < ts._current); - } - /// compare current time - bool operator<=(TimeStep const& ts) const - { - return (_current <= ts._current); - } - /// compare current time - bool operator==(TimeStep const& ts) const - { - return _current == ts._current; - } /// return previous time step Time previous() const { return _previous; } /// return current time step diff --git a/Tests/NumLib/TestTimeStep.cpp b/Tests/NumLib/TestTimeStep.cpp index 5664ca4546e..e98c101c1f4 100644 --- a/Tests/NumLib/TestTimeStep.cpp +++ b/Tests/NumLib/TestTimeStep.cpp @@ -37,5 +37,5 @@ TEST(NumLib, TimeStep) ASSERT_EQ(1u, t3.timeStepNumber()); // comparison - ASSERT_TRUE(t2 == t3); + ASSERT_EQ(t2.current(), t3.current()); } -- GitLab