From d6797f5cdc355f42abcd8ab369aa317afb4abdd2 Mon Sep 17 00:00:00 2001 From: Florian Mayer Date: Mon, 18 Dec 2023 18:46:35 -0800 Subject: [scudo] [NFC] remove unused method GitOrigin-RevId: 4f9ad0f856a0fbbb641ea7e3888087d2e77e1a0c Change-Id: I7cd6adebe5d26419d4ff6945b047a9d976312190 --- standalone/combined.h | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/standalone/combined.h b/standalone/combined.h index 65ddc488370..4624f83d142 100644 --- a/standalone/combined.h +++ b/standalone/combined.h @@ -939,19 +939,6 @@ public: return RingBufferElements ? ringBufferSizeInBytes(RingBufferElements) : 0; } - static bool setRingBufferSizeForBuffer(char *Buffer, size_t Size) { - // Need at least one entry. - if (Size < sizeof(AllocationRingBuffer) + - sizeof(typename AllocationRingBuffer::Entry)) { - return false; - } - AllocationRingBuffer *RingBuffer = - reinterpret_cast(Buffer); - RingBuffer->Size = (Size - sizeof(AllocationRingBuffer)) / - sizeof(typename AllocationRingBuffer::Entry); - return true; - } - static const uptr MaxTraceSize = 64; static void collectTraceMaybe(const StackDepot *Depot, -- cgit v1.2.3