Skip to content

Commit

Permalink
Remove unused util_zlib
Browse files Browse the repository at this point in the history
  • Loading branch information
eivindjahren committed Aug 8, 2024
1 parent 6e6acec commit e44e3ad
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 292 deletions.
5 changes: 0 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -303,11 +303,6 @@ if(M_LIBRARY)
endif()

find_package(ZLIB)
if(ZLIB_FOUND)
set(ERT_HAVE_ZLIB ON)
set(zlib "${ZLIB_LIBRARIES}")
endif()

find_library(SHLWAPI_LIBRARY NAMES Shlwapi)
if(SHLWAPI_LIBRARY)
set(shlwapi ${SHLWAPI_LIBRARY})
Expand Down
4 changes: 0 additions & 4 deletions lib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,6 @@ foreach(type bool size_t)
list(APPEND opt_srcs ${CMAKE_CURRENT_BINARY_DIR}/${type}_vector.cpp)
endforeach()

if(ZLIB_FOUND)
list(APPEND opt_srcs util/util_zlib.cpp)
endif()

configure_file(build_config.hpp.in include/ert/util/build_config.hpp)
configure_file(ert_api_config.hpp.in include/ert/util/ert_api_config.hpp)

Expand Down
1 change: 0 additions & 1 deletion lib/ert_api_config.hpp.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#cmakedefine ERT_HAVE_ZLIB
#cmakedefine ERT_HAVE_ISFINITE
#cmakedefine ERT_HAVE_GETOPT
#cmakedefine ERT_HAVE_UNISTD
Expand Down
8 changes: 0 additions & 8 deletions lib/include/ert/util/util.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -310,14 +310,6 @@ void util_abort__(const char *file, const char *function, int line,
const char *fmt, ...);
void util_abort_signal(int);

#ifdef ERT_HAVE_ZLIB
void util_compress_buffer(const void *, int, void *, unsigned long *);
int util_fread_sizeof_compressed(FILE *stream);
void util_fread_compressed(void *, FILE *);
void *util_fread_alloc_compressed(FILE *);
void util_fwrite_compressed(const void *, int, FILE *);
#endif

#ifdef ERT_HAVE_SYMLINK
void util_make_slink(const char *, const char *);
char *util_alloc_link_target(const char *link);
Expand Down
274 changes: 0 additions & 274 deletions lib/util/util_zlib.cpp

This file was deleted.

0 comments on commit e44e3ad

Please sign in to comment.