Skip to content

Commit 56cbb71

Browse files
committed
perflib: remove perflib_glue_strings
There are no users of it. Signed-off-by: Eugene Syromiatnikov <[email protected]>
1 parent 7a87ac1 commit 56cbb71

File tree

2 files changed

+0
-27
lines changed

2 files changed

+0
-27
lines changed

source/perflib/perfhelper.c

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -32,29 +32,3 @@ char *perflib_mk_file_path(const char *dir, const char *file)
3232

3333
return full_file;
3434
}
35-
36-
/*
37-
* Glue an array of strings together and return it as an allocated string.
38-
* Optionally return the whole length of this string in |out_len|
39-
*/
40-
char *perflib_glue_strings(const char *list[], size_t *out_len)
41-
{
42-
size_t len = 0;
43-
char *p, *ret;
44-
int i;
45-
46-
for (i = 0; list[i] != NULL; i++)
47-
len += strlen(list[i]);
48-
49-
if (out_len != NULL)
50-
*out_len = len;
51-
52-
ret = p = OPENSSL_malloc(len + 1);
53-
if (p == NULL)
54-
return NULL;
55-
56-
for (i = 0; list[i] != NULL; i++)
57-
p += strlen(strcpy(p, list[i]));
58-
59-
return ret;
60-
}

source/perflib/perflib.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ perflib_run_multi_thread_test(void (*f)(size_t), size_t threadcount,
9494
NULL, NULL);
9595
}
9696
char *perflib_mk_file_path(const char *dir, const char *file);
97-
char *perflib_glue_strings(const char *list[], size_t *out_len);
9897

9998
int perflib_create_ssl_ctx_pair(const SSL_METHOD *sm, const SSL_METHOD *cm,
10099
int min_proto_version, int max_proto_version,

0 commit comments

Comments
 (0)