aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/yt/malloc/malloc.cpp
diff options
context:
space:
mode:
authorbabenko <babenko@yandex-team.com>2022-08-08 23:32:27 +0300
committerbabenko <babenko@yandex-team.com>2022-08-08 23:32:27 +0300
commit6f0dca4575782eca7bfe2d9160574767444c4f06 (patch)
treea5dad3d0eceb2d02929db1c843c69eafba632c27 /library/cpp/yt/malloc/malloc.cpp
parent97756e1f8069e2de8c4b5d27a358fa0c7eb29169 (diff)
downloadydb-6f0dca4575782eca7bfe2d9160574767444c4f06.tar.gz
Get rid of NYTAlloc::GetAllocationSize usages
Diffstat (limited to 'library/cpp/yt/malloc/malloc.cpp')
-rw-r--r--library/cpp/yt/malloc/malloc.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/library/cpp/yt/malloc/malloc.cpp b/library/cpp/yt/malloc/malloc.cpp
index 808afacdfb..4a35758cab 100644
--- a/library/cpp/yt/malloc/malloc.cpp
+++ b/library/cpp/yt/malloc/malloc.cpp
@@ -4,16 +4,14 @@
////////////////////////////////////////////////////////////////////////////////
-Y_WEAK extern "C" size_t nallocx(size_t size, int /* flags */) noexcept
+Y_WEAK extern "C" size_t nallocx(size_t size, int /*flags*/) noexcept
{
return size;
}
-#ifndef _win_
-Y_WEAK extern "C" size_t malloc_usable_size(void* /* ptr */) noexcept
+Y_WEAK extern "C" size_t malloc_usable_size(void* /*ptr*/) noexcept
{
return 0;
}
-#endif
////////////////////////////////////////////////////////////////////////////////