Skip to content

Commit 4f9ad0f

Browse files
committed
[scudo] [NFC] remove unused method
1 parent fdee0a3 commit 4f9ad0f

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

compiler-rt/lib/scudo/standalone/combined.h

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -939,19 +939,6 @@ class Allocator {
939939
return RingBufferElements ? ringBufferSizeInBytes(RingBufferElements) : 0;
940940
}
941941

942-
static bool setRingBufferSizeForBuffer(char *Buffer, size_t Size) {
943-
// Need at least one entry.
944-
if (Size < sizeof(AllocationRingBuffer) +
945-
sizeof(typename AllocationRingBuffer::Entry)) {
946-
return false;
947-
}
948-
AllocationRingBuffer *RingBuffer =
949-
reinterpret_cast<AllocationRingBuffer *>(Buffer);
950-
RingBuffer->Size = (Size - sizeof(AllocationRingBuffer)) /
951-
sizeof(typename AllocationRingBuffer::Entry);
952-
return true;
953-
}
954-
955942
static const uptr MaxTraceSize = 64;
956943

957944
static void collectTraceMaybe(const StackDepot *Depot,

0 commit comments

Comments
 (0)