Skip to content

Commit c62bc5b

Browse files
committed
Remove custom allocator.
1 parent 12bc7ed commit c62bc5b

File tree

5 files changed

+0
-349
lines changed

5 files changed

+0
-349
lines changed

src/native/libs/System.IO.Compression.Native/CMakeLists.txt

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,6 @@ set(NATIVECOMPRESSION_SOURCES
1414
pal_zlib.c
1515
)
1616

17-
if (HOST_WIN32 OR CLR_CMAKE_TARGET_WIN32)
18-
list(APPEND NATIVECOMPRESSION_SOURCES "zlib_allocator_win.c")
19-
else()
20-
list(APPEND NATIVECOMPRESSION_SOURCES "zlib_allocator_unix.c")
21-
endif()
22-
2317
if (NOT CLR_CMAKE_TARGET_BROWSER AND NOT CLR_CMAKE_TARGET_WASI)
2418

2519
if (CLR_CMAKE_USE_SYSTEM_BROTLI)

src/native/libs/System.IO.Compression.Native/pal_zlib.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
#else
1212
#include "pal_utilities.h"
1313
#endif
14-
#include <zlib_allocator.h>
1514
#include <zlib.h>
1615

1716
c_static_assert(PAL_Z_NOFLUSH == Z_NO_FLUSH);
@@ -40,9 +39,6 @@ static int32_t Init(PAL_ZStream* stream)
4039
{
4140
z_stream* zStream = (z_stream*)calloc(1, sizeof(z_stream));
4241

43-
zStream->zalloc = z_custom_calloc;
44-
zStream->zfree = z_custom_cfree;
45-
4642
stream->internalState = zStream;
4743

4844
if (zStream != NULL)

src/native/libs/System.IO.Compression.Native/zlib_allocator.h

Lines changed: 0 additions & 8 deletions
This file was deleted.

src/native/libs/System.IO.Compression.Native/zlib_allocator_unix.c

Lines changed: 0 additions & 151 deletions
This file was deleted.

src/native/libs/System.IO.Compression.Native/zlib_allocator_win.c

Lines changed: 0 additions & 180 deletions
This file was deleted.

0 commit comments

Comments
 (0)