Commit 39785b58 authored by Erik Faye-Lund's avatar Erik Faye-Lund
Browse files

removing unused function


Signed-off-by: default avatarErik Faye-Lund <kusmabite@gmail.com>
parent 29002843
......@@ -194,12 +194,3 @@ void serializer_fixup_pointers(struct serializer *s)
}
}
int serializer_find_data(struct serializer *s, const void *data, size_t data_size)
{
int i;
for (i = 0; i <= (int)s->pos - (int)data_size; ++i)
{
if (0 == memcmp(data, &s->data[i], data_size)) return i;
}
return -1;
}
......@@ -27,8 +27,6 @@ void serializer_align(struct serializer *s, int alignment);
void serializer_set_pointer(struct serializer *s, void *ptr, int pos);
void serializer_fixup_pointers(struct serializer *s);
int serializer_find_data(struct serializer *s, const void *data, size_t data_size);
void serialize_byte(struct serializer *s, unsigned char b);
void serialize_halfword(struct serializer *s, unsigned short h);
void serialize_word(struct serializer *s, unsigned int w);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment