Commit 9ee468ce authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

tests: Remove unused function strcopy

parent d9f54518
......@@ -59,15 +59,6 @@ ssize_t unpack_frame_with_nv_block(nghttp2_frame *frame,
return rv;
}
char* strcopy(const char* s)
{
size_t len = strlen(s);
char *dest = malloc(len+1);
memcpy(dest, s, len);
dest[len] = '\0';
return dest;
}
int strmemeq(const char *a, const uint8_t *b, size_t bn)
{
const uint8_t *c;
......
......@@ -41,8 +41,6 @@ ssize_t unpack_frame_with_nv_block(nghttp2_frame *frame,
nghttp2_hd_context *inflater,
const uint8_t *in, size_t len);
char* strcopy(const char* s);
int strmemeq(const char *a, const uint8_t *b, size_t bn);
int nvnameeq(const char *a, nghttp2_nv *nv);
......
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