ewah_io: delete unused 'ewah_serialize()'
authorDerrick Stolee <dstolee@microsoft.com>
Fri, 15 Jun 2018 18:27:52 +0000 (18:27 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 18 Jun 2018 17:16:19 +0000 (10:16 -0700)
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>
ewah/ewah_io.c
ewah/ewok.h
index 33c08c40f896f32d9a1c251c1456755e949d91bd..345ee6287ed46b78cc0f59ec31241ee6bfce2959 100644 (file)
@@ -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;
index cf902e50ad0f6e082dd325739dcbe5dce737b7a1..894f0dc5fd37a55194eeb1a1a6a256e2783adab3 100644 (file)
@@ -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 *);