Remove unused str_repeat function

This commit is contained in:
c9s 2015-11-17 21:06:59 +08:00
parent 38651578f9
commit 63577cfecc
2 changed files with 0 additions and 8 deletions

View file

@ -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); 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); void print_indent(int level);
#ifdef __cplusplus #ifdef __cplusplus

View file

@ -225,12 +225,6 @@ char * ltrim_slash(char* str)
return zstrdup(p); return zstrdup(p);
} }
void str_repeat(char *s, const char *c, int len) {
while(len--) {
s[len - 1] = *c;
}
}
void print_indent(int level) { void print_indent(int level) {
int len = level * 2; int len = level * 2;
while(len--) { while(len--) {