ewah_io: delete unused 'ewah_serialize()'

Reported-by: Ramsay Jones <ramsay@ramsayjones.plus.com>
Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Derrick Stolee 2018-06-15 18:27:52 +00:00 committed by Junio C Hamano
parent a9fda811fc
commit 83ea4e1e59
2 changed files with 0 additions and 11 deletions

View File

@ -100,16 +100,6 @@ int ewah_serialize_to(struct ewah_bitmap *self,
return (3 * 4) + (self->buffer_size * 8); 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) static int write_strbuf(void *user_data, const void *data, size_t len)
{ {
struct strbuf *sb = user_data; struct strbuf *sb = user_data;

View File

@ -86,7 +86,6 @@ void ewah_free(struct ewah_bitmap *self);
int ewah_serialize_to(struct ewah_bitmap *self, int ewah_serialize_to(struct ewah_bitmap *self,
int (*write_fun)(void *out, const void *buf, size_t len), int (*write_fun)(void *out, const void *buf, size_t len),
void *out); void *out);
int ewah_serialize(struct ewah_bitmap *self, int fd);
int ewah_serialize_native(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 *); int ewah_serialize_strbuf(struct ewah_bitmap *self, struct strbuf *);