aboutsummaryrefslogtreecommitdiffstats
path: root/chunk-format.h
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2023-10-09 17:06:01 -0400
committerJunio C Hamano <gitster@pobox.com>2023-10-09 15:55:02 -0700
commitca06f0fe5d8f3e93da1486b880f0e94f1c11238a (patch)
treee87f8887682fbce874dd8598c63422a5f319d9dd /chunk-format.h
parent12192a9db9beb3c45dd5064f34d1fcdc71f6a062 (diff)
downloadgit-ca06f0fe5d8f3e93da1486b880f0e94f1c11238a.tar.gz
chunk-format: drop pair_chunk_unsafe()
There are no callers left, and we don't want anybody to add new ones (they should use the not-unsafe version instead). So let's drop the function. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'chunk-format.h')
-rw-r--r--chunk-format.h13
1 files changed, 0 insertions, 13 deletions
diff --git a/chunk-format.h b/chunk-format.h
index d608b8135c..14b76180ef 100644
--- a/chunk-format.h
+++ b/chunk-format.h
@@ -54,19 +54,6 @@ int pair_chunk(struct chunkfile *cf,
const unsigned char **p,
size_t *size);
-/*
- * Unsafe version of pair_chunk; it does not return the size,
- * meaning that the caller cannot possibly be careful about
- * reading out of bounds from the mapped memory.
- *
- * No new callers should use this function, and old callers should
- * be audited and migrated over to using the regular pair_chunk()
- * function.
- */
-int pair_chunk_unsafe(struct chunkfile *cf,
- uint32_t chunk_id,
- const unsigned char **p);
-
typedef int (*chunk_read_fn)(const unsigned char *chunk_start,
size_t chunk_size, void *data);
/*