From b97bd4848b191a5bb3bd976cb732bbf4911bb844 Mon Sep 17 00:00:00 2001 From: levlam Date: Fri, 24 Jun 2022 19:00:29 +0300 Subject: [PATCH] Allow to inline BufferAllocator::track_buffer_slice. --- tdutils/td/utils/buffer.cpp | 3 --- tdutils/td/utils/buffer.h | 3 ++- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/tdutils/td/utils/buffer.cpp b/tdutils/td/utils/buffer.cpp index f4ae97f95..f767e23ae 100644 --- a/tdutils/td/utils/buffer.cpp +++ b/tdutils/td/utils/buffer.cpp @@ -29,9 +29,6 @@ int64 BufferAllocator::get_buffer_slice_size() { return 0; } -void BufferAllocator::track_buffer_slice(int64 size) { -} - size_t BufferAllocator::get_buffer_mem() { return buffer_mem; } diff --git a/tdutils/td/utils/buffer.h b/tdutils/td/utils/buffer.h index 46ae24963..ec81c85ad 100644 --- a/tdutils/td/utils/buffer.h +++ b/tdutils/td/utils/buffer.h @@ -74,7 +74,8 @@ class BufferAllocator { private: friend class BufferSlice; - static void track_buffer_slice(int64 size); + static void track_buffer_slice(int64 size) { + } static ReaderPtr create_reader_fast(size_t size);