tests: Remove unused function strcopy
This commit is contained in:
parent
d9f5451810
commit
9ee468ce62
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue