tests: Remove unused function strcopy

This commit is contained in:
Tatsuhiro Tsujikawa 2013-11-01 00:32:31 +09:00
parent d9f5451810
commit 9ee468ce62
2 changed files with 0 additions and 11 deletions

View File

@ -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;

View File

@ -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);