Skip to content

Commit 83ea4e1

Browse files
derrickstoleegitster
authored andcommitted
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>
1 parent a9fda81 commit 83ea4e1

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
lines changed

ewah/ewah_io.c

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -100,16 +100,6 @@ int ewah_serialize_to(struct ewah_bitmap *self,
100100
return (3 * 4) + (self->buffer_size * 8);
101101
}
102102

103-
static int write_helper(void *fd, const void *buf, size_t len)
104-
{
105-
return write((intptr_t)fd, buf, len);
106-
}
107-
108-
int ewah_serialize(struct ewah_bitmap *self, int fd)
109-
{
110-
return ewah_serialize_to(self, write_helper, (void *)(intptr_t)fd);
111-
}
112-
113103
static int write_strbuf(void *user_data, const void *data, size_t len)
114104
{
115105
struct strbuf *sb = user_data;

ewah/ewok.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ void ewah_free(struct ewah_bitmap *self);
8686
int ewah_serialize_to(struct ewah_bitmap *self,
8787
int (*write_fun)(void *out, const void *buf, size_t len),
8888
void *out);
89-
int ewah_serialize(struct ewah_bitmap *self, int fd);
9089
int ewah_serialize_native(struct ewah_bitmap *self, int fd);
9190
int ewah_serialize_strbuf(struct ewah_bitmap *self, struct strbuf *);
9291

0 commit comments

Comments
 (0)