From 9ee468ce6221f25a87f93fd13890c2cd674c5ac7 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Fri, 1 Nov 2013 00:32:31 +0900 Subject: [PATCH] tests: Remove unused function strcopy --- tests/nghttp2_test_helper.c | 9 --------- tests/nghttp2_test_helper.h | 2 -- 2 files changed, 11 deletions(-) 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);