aboutsummaryrefslogtreecommitdiffstats
path: root/git-compat-util.h
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2025-01-28 09:41:27 +0100
committerJunio C Hamano <gitster@pobox.com>2025-01-28 13:03:22 -0800
commit3656d57bbf4d82b62f368d56d3c4703f3916c2dc (patch)
tree9d1388c678f5260bd42595c260355a18cbb3899e /git-compat-util.h
parentMerge branch 'ps/build-meson-fixes' into ps/zlib-ng (diff)
downloadgit-3656d57bbf4d82b62f368d56d3c4703f3916c2dc.tar.gz
git-3656d57bbf4d82b62f368d56d3c4703f3916c2dc.zip
compat: drop `uncompress2()` compatibility shim
Our compat library has an implementation of zlib's `uncompress2()` function that gets used when linking against an old version of zlib that doesn't yet have it. The last user of `uncompress2()` got removed in 15a60b747e (reftable/block: open-code call to `uncompress2()`, 2024-04-08), so the compatibility code is not required anymore. Drop it. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-compat-util.h')
-rw-r--r--git-compat-util.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/git-compat-util.h b/git-compat-util.h
index e283c46c6f..d50f487c00 100644
--- a/git-compat-util.h
+++ b/git-compat-util.h
@@ -1540,15 +1540,6 @@ int common_exit(const char *file, int line, int code);
#define z_const
#include <zlib.h>
-#if ZLIB_VERNUM < 0x1290
-/*
- * This is uncompress2, which is only available in zlib >= 1.2.9
- * (released as of early 2017). See compat/zlib-uncompress2.c.
- */
-int uncompress2(Bytef *dest, uLongf *destLen, const Bytef *source,
- uLong *sourceLen);
-#endif
-
/*
* This include must come after system headers, since it introduces macros that
* replace system names.