From 7173d7f00b76690c4c73bf395017bba51db6d22b Mon Sep 17 00:00:00 2001 From: Swiftb0y <12380386+Swiftb0y@users.noreply.github.com> Date: Fri, 16 Aug 2024 14:04:43 +0200 Subject: [PATCH] chore: remove unnecessary `inline` keywords --- src/control/controlvalue.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/control/controlvalue.h b/src/control/controlvalue.h index 1eb48e7dbec..8892395961d 100644 --- a/src/control/controlvalue.h +++ b/src/control/controlvalue.h @@ -78,7 +78,7 @@ class ControlValueAtomicBase { "cRingSize is not a power of two; required for optimal alignment"); public: - inline T getValue() const { + T getValue() const { T value; std::size_t index = m_readIndex.load(std::memory_order_relaxed) % cRingSize; while (!m_ring[index].tryGet(&value)) { @@ -95,7 +95,7 @@ class ControlValueAtomicBase { return value; } - inline void setValue(const T& value) { + void setValue(const T& value) { // Test if we can read atomic // This test is const and will be mad only at compile time std::size_t index; @@ -127,12 +127,11 @@ class ControlValueAtomicBase { template class ControlValueAtomicBase { public: - inline T getValue() const { + T getValue() const { return m_value; } - - inline void setValue(const T& value) { + void setValue(const T& value) { m_value = value; }