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--) {