summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Mayer <fmayer@google.com>2023-12-18 18:46:35 -0800
committerCopybara-Service <copybara-worker@google.com>2023-12-18 18:59:55 -0800
commitd6797f5cdc355f42abcd8ab369aa317afb4abdd2 (patch)
treeaa76feea3dda3025aab850461ef6b926a647036a
parent9469278e26df083c088b03aa655f302589f6be8b (diff)
downloadscudo-d6797f5cdc355f42abcd8ab369aa317afb4abdd2.tar.gz
[scudo] [NFC] remove unused method
GitOrigin-RevId: 4f9ad0f856a0fbbb641ea7e3888087d2e77e1a0c Change-Id: I7cd6adebe5d26419d4ff6945b047a9d976312190
-rw-r--r--standalone/combined.h13
1 files changed, 0 insertions, 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<AllocationRingBuffer *>(Buffer);
- RingBuffer->Size = (Size - sizeof(AllocationRingBuffer)) /
- sizeof(typename AllocationRingBuffer::Entry);
- return true;
- }
-
static const uptr MaxTraceSize = 64;
static void collectTraceMaybe(const StackDepot *Depot,