From 83ea4e1e5997898ee98eacc61fce56cc1c614cd4 Mon Sep 17 00:00:00 2001 From: Derrick Stolee Date: Fri, 15 Jun 2018 18:27:52 +0000 Subject: ewah_io: delete unused 'ewah_serialize()' Reported-by: Ramsay Jones Signed-off-by: Derrick Stolee Signed-off-by: Junio C Hamano diff --git a/ewah/ewah_io.c b/ewah/ewah_io.c index 33c08c4..345ee62 100644 --- a/ewah/ewah_io.c +++ b/ewah/ewah_io.c @@ -100,16 +100,6 @@ int ewah_serialize_to(struct ewah_bitmap *self, return (3 * 4) + (self->buffer_size * 8); } -static int write_helper(void *fd, const void *buf, size_t len) -{ - return write((intptr_t)fd, buf, len); -} - -int ewah_serialize(struct ewah_bitmap *self, int fd) -{ - return ewah_serialize_to(self, write_helper, (void *)(intptr_t)fd); -} - static int write_strbuf(void *user_data, const void *data, size_t len) { struct strbuf *sb = user_data; diff --git a/ewah/ewok.h b/ewah/ewok.h index cf902e5..894f0dc 100644 --- a/ewah/ewok.h +++ b/ewah/ewok.h @@ -86,7 +86,6 @@ void ewah_free(struct ewah_bitmap *self); int ewah_serialize_to(struct ewah_bitmap *self, int (*write_fun)(void *out, const void *buf, size_t len), void *out); -int ewah_serialize(struct ewah_bitmap *self, int fd); int ewah_serialize_native(struct ewah_bitmap *self, int fd); int ewah_serialize_strbuf(struct ewah_bitmap *self, struct strbuf *); -- cgit v0.10.2-6-g49f6