Skip to content

Commit

Permalink
Remove custom allocator.
Browse files Browse the repository at this point in the history
  • Loading branch information
carlossanlop committed Sep 5, 2024
1 parent 12bc7ed commit c62bc5b
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 349 deletions.
6 changes: 0 additions & 6 deletions src/native/libs/System.IO.Compression.Native/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,6 @@ set(NATIVECOMPRESSION_SOURCES
pal_zlib.c
)

if (HOST_WIN32 OR CLR_CMAKE_TARGET_WIN32)
list(APPEND NATIVECOMPRESSION_SOURCES "zlib_allocator_win.c")
else()
list(APPEND NATIVECOMPRESSION_SOURCES "zlib_allocator_unix.c")
endif()

if (NOT CLR_CMAKE_TARGET_BROWSER AND NOT CLR_CMAKE_TARGET_WASI)

if (CLR_CMAKE_USE_SYSTEM_BROTLI)
Expand Down
4 changes: 0 additions & 4 deletions src/native/libs/System.IO.Compression.Native/pal_zlib.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
#else
#include "pal_utilities.h"
#endif
#include <zlib_allocator.h>
#include <zlib.h>

c_static_assert(PAL_Z_NOFLUSH == Z_NO_FLUSH);
Expand Down Expand Up @@ -40,9 +39,6 @@ static int32_t Init(PAL_ZStream* stream)
{
z_stream* zStream = (z_stream*)calloc(1, sizeof(z_stream));

zStream->zalloc = z_custom_calloc;
zStream->zfree = z_custom_cfree;

stream->internalState = zStream;

if (zStream != NULL)
Expand Down
8 changes: 0 additions & 8 deletions src/native/libs/System.IO.Compression.Native/zlib_allocator.h

This file was deleted.

151 changes: 0 additions & 151 deletions src/native/libs/System.IO.Compression.Native/zlib_allocator_unix.c

This file was deleted.

180 changes: 0 additions & 180 deletions src/native/libs/System.IO.Compression.Native/zlib_allocator_win.c

This file was deleted.

0 comments on commit c62bc5b

Please sign in to comment.