summaryrefslogtreecommitdiff
path: root/xdiff/xmacros.h
diff options
context:
space:
mode:
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>2022-03-31 01:45:52 (GMT)
committerJunio C Hamano <gitster@pobox.com>2022-04-01 17:16:06 (GMT)
commit8c0cfadd9a8afd1accd05e5a31e044620726bcc8 (patch)
tree582feff644e484c6c69af4e732e2d059974804c9 /xdiff/xmacros.h
parent7146f271c6077ff35e33684b8e7de48dca4e9dcf (diff)
downloadgit-8c0cfadd9a8afd1accd05e5a31e044620726bcc8.zip
git-8c0cfadd9a8afd1accd05e5a31e044620726bcc8.tar.gz
git-8c0cfadd9a8afd1accd05e5a31e044620726bcc8.tar.bz2
xdiff/xmacros.h: remove unused XDL_PTRFREE
This macro was added in 3443546f6ef (Use a *real* built-in diff generator, 2006-03-24), but none of the xdiff code uses it, it uses xdl_free() directly. If we need its functionality again we'll use the FREE_AND_NULL() macro added in 481df65f4f7 (git-compat-util: add a FREE_AND_NULL() wrapper around free(ptr); ptr = NULL, 2017-06-15). Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'xdiff/xmacros.h')
-rw-r--r--xdiff/xmacros.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/xdiff/xmacros.h b/xdiff/xmacros.h
index 2809a28..ae4636c 100644
--- a/xdiff/xmacros.h
+++ b/xdiff/xmacros.h
@@ -34,7 +34,6 @@
#define XDL_ADDBITS(v,b) ((v) + ((v) >> (b)))
#define XDL_MASKBITS(b) ((1UL << (b)) - 1)
#define XDL_HASHLONG(v,b) (XDL_ADDBITS((unsigned long)(v), b) & XDL_MASKBITS(b))
-#define XDL_PTRFREE(p) do { if (p) { xdl_free(p); (p) = NULL; } } while (0)
#define XDL_LE32_PUT(p, v) \
do { \
unsigned char *__p = (unsigned char *) (p); \