tidy-up: delete parallel/unused feature flags #9652
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Detecting headers and lib separately makes sense when headers come in
variations or with extra ones, but this wasn't the case here. These were
duplicate/parallel macros that we had to keep in sync with each other
for a working build. This patch leaves a single macro for each of these
dependencies:
Rely on
HAVE_LIBZ
, delete parallelHAVE_ZLIB_H
.Also delete CMake logic making sure these two were in sync, along with
a toggle to turn off that logic, called
CURL_SPECIAL_LIBZ
.Also delete stray
HAVE_ZLIB
defines.There is also a
USE_ZLIB
variant inlib/config-dos.h
. This patchretains it for compatibility and deprecates it.
Rely on
USE_LIBSSH2
, delete parallelHAVE_LIBSSH2_H
.Also delete
LIBSSH2_WIN32
,LIBSSH2_LIBRARY
fromwinbuild/MakefileBuild.vc
, these have a role when building libssh2itself. And
CURL_USE_LIBSSH
, which had no use at all.Also delete stray
HAVE_LIBSSH2
defines.Rely on
USE_LIBSSH
, delete parallelHAVE_LIBSSH_LIBSSH_H
.Also delete
LIBSSH_WIN32
,LIBSSH_LIBRARY
andHAVE_LIBSSH
fromwinbuild/MakefileBuild.vc
, these were the result of copy-pasting thelibssh2 line, and were not having any use.
Delete unused
HAVE_LIBPSL_H
andHAVE_LIBPSL
.Reviewed-by: Daniel Stenberg
Closes #9652