diff --git a/tdutils/td/utils/buffer.cpp b/tdutils/td/utils/buffer.cpp index 05da3e220..d6e70a4cd 100644 --- a/tdutils/td/utils/buffer.cpp +++ b/tdutils/td/utils/buffer.cpp @@ -8,7 +8,6 @@ #include "td/utils/logging.h" #include "td/utils/port/thread_local.h" -#include "td/utils/ThreadSafeCounter.h" #include #include @@ -26,18 +25,12 @@ TD_THREAD_LOCAL BufferAllocator::BufferRawTls *BufferAllocator::buffer_raw_tls; std::atomic BufferAllocator::buffer_mem; -static ThreadSafeCounter buffer_slice_size_; - int64 BufferAllocator::get_buffer_slice_size() { - return buffer_slice_size_.sum(); + return 0; } void BufferAllocator::track_buffer_slice(int64 size) { - if (size == 0) { - return; - } - - buffer_slice_size_.add(size); + return; } size_t BufferAllocator::get_buffer_mem() {