From 530603489363b5da169af14f261389889f158600 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sun, 14 Nov 2021 18:52:27 +0100 Subject: [PATCH] Remove unused methods. --- client/tracy_SPSCQueue.h | 46 ---------------------------------------- 1 file changed, 46 deletions(-) diff --git a/client/tracy_SPSCQueue.h b/client/tracy_SPSCQueue.h index 7e125ab7..0120d543 100644 --- a/client/tracy_SPSCQueue.h +++ b/client/tracy_SPSCQueue.h @@ -84,52 +84,6 @@ public: writeIdx_.store(nextWriteIdx, std::memory_order_release); } - template - bool try_emplace(Args &&...args) noexcept( - std::is_nothrow_constructible::value) { - static_assert(std::is_constructible::value, - "T must be constructible with Args&&..."); - auto const writeIdx = writeIdx_.load(std::memory_order_relaxed); - auto nextWriteIdx = writeIdx + 1; - if (nextWriteIdx == capacity_) { - nextWriteIdx = 0; - } - if (nextWriteIdx == readIdxCache_) { - readIdxCache_ = readIdx_.load(std::memory_order_acquire); - if (nextWriteIdx == readIdxCache_) { - return false; - } - } - new (&slots_[writeIdx + kPadding]) T(std::forward(args)...); - writeIdx_.store(nextWriteIdx, std::memory_order_release); - return true; - } - - void push(const T &v) noexcept(std::is_nothrow_copy_constructible::value) { - static_assert(std::is_copy_constructible::value, - "T must be copy constructible"); - emplace(v); - } - - template ::value>::type> - void push(P &&v) noexcept(std::is_nothrow_constructible::value) { - emplace(std::forward

(v)); - } - - bool - try_push(const T &v) noexcept(std::is_nothrow_copy_constructible::value) { - static_assert(std::is_copy_constructible::value, - "T must be copy constructible"); - return try_emplace(v); - } - - template ::value>::type> - bool try_push(P &&v) noexcept(std::is_nothrow_constructible::value) { - return try_emplace(std::forward

(v)); - } - T *front() noexcept { auto const readIdx = readIdx_.load(std::memory_order_relaxed); if (readIdx == writeIdxCache_) {