summaryrefslogtreecommitdiff
path: root/ewah/ewok.h
diff options
context:
space:
mode:
authorLibravatar Jeff King <peff@peff.net>2018-06-14 23:31:58 -0400
committerLibravatar Junio C Hamano <gitster@pobox.com>2018-06-18 10:16:19 -0700
commitcaa88140d4cc9e0ac79bb5d9d6569fe7d08a93a8 (patch)
treedfb22e23d78ee6d07a01e03ad054efe1cb9c6c75 /ewah/ewok.h
parentewah_io: delete unused 'ewah_serialize()' (diff)
downloadtgif-caa88140d4cc9e0ac79bb5d9d6569fe7d08a93a8.tar.xz
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 894f0dc5fd..e32a09cb27 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);