diff --git a/tests/nghttp2_test_helper.c b/tests/nghttp2_test_helper.c index 25916813..863dd0f0 100644 --- a/tests/nghttp2_test_helper.c +++ b/tests/nghttp2_test_helper.c @@ -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; diff --git a/tests/nghttp2_test_helper.h b/tests/nghttp2_test_helper.h index 30bc60bc..c2794830 100644 --- a/tests/nghttp2_test_helper.h +++ b/tests/nghttp2_test_helper.h @@ -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);