summaryrefslogtreecommitdiff
path: root/ewah/ewok.h
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2018-06-15 03:31:58 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-06-18 17:16:19 (GMT)
commitcaa88140d4cc9e0ac79bb5d9d6569fe7d08a93a8 (patch)
treedfb22e23d78ee6d07a01e03ad054efe1cb9c6c75 /ewah/ewok.h
parent83ea4e1e5997898ee98eacc61fce56cc1c614cd4 (diff)
downloadgit-caa88140d4cc9e0ac79bb5d9d6569fe7d08a93a8.zip
git-caa88140d4cc9e0ac79bb5d9d6569fe7d08a93a8.tar.gz
git-caa88140d4cc9e0ac79bb5d9d6569fe7d08a93a8.tar.bz2
ewah: drop ewah_deserialize function
We don't call this function, and in fact never have since it was added (at least not in iterations of the ewah patches that got merged). Instead we use ewah_read_mmap(). Let's drop the unused code. Note to anybody who later wants to resurrect this: it does not check for integer overflow in the ewah data size, meaning it may be possible to convince the code to allocate a too-small buffer and read() into it. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'ewah/ewok.h')
-rw-r--r--ewah/ewok.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/ewah/ewok.h b/ewah/ewok.h
index 894f0dc..e32a09c 100644
--- a/ewah/ewok.h
+++ b/ewah/ewok.h
@@ -89,7 +89,6 @@ int ewah_serialize_to(struct ewah_bitmap *self,
int ewah_serialize_native(struct ewah_bitmap *self, int fd);
int ewah_serialize_strbuf(struct ewah_bitmap *self, struct strbuf *);
-int ewah_deserialize(struct ewah_bitmap *self, int fd);
ssize_t ewah_read_mmap(struct ewah_bitmap *self, const void *map, size_t len);
uint32_t ewah_checksum(struct ewah_bitmap *self);