From 63577cfeccd4617efb5d2f025f38113a85d78d52 Mon Sep 17 00:00:00 2001 From: c9s Date: Tue, 17 Nov 2015 21:06:59 +0800 Subject: [PATCH] Remove unused str_repeat function --- include/r3_str.h | 2 -- src/str.c | 6 ------ 2 files changed, 8 deletions(-) diff --git a/include/r3_str.h b/include/r3_str.h index 469ef9d..967a1ef 100644 --- a/include/r3_str.h +++ b/include/r3_str.h @@ -23,8 +23,6 @@ int r3_slug_count(const char * needle, int len, char **errstr); char * r3_inside_slug(const char * needle, int needle_len, char *offset, char **errstr); -void str_repeat(char *s, const char *c, int len); - void print_indent(int level); #ifdef __cplusplus diff --git a/src/str.c b/src/str.c index a9563a8..f21fa57 100644 --- a/src/str.c +++ b/src/str.c @@ -225,12 +225,6 @@ char * ltrim_slash(char* str) return zstrdup(p); } -void str_repeat(char *s, const char *c, int len) { - while(len--) { - s[len - 1] = *c; - } -} - void print_indent(int level) { int len = level * 2; while(len--) {