@matheusbsbs / matheus-bagliano / commits / 229d810747
Fork 0

strbuf.c: remove unused function

strbuf_tolower() is not used anywhere. Signed-off-by: Junio C Hamano <gitster@pobox.com>

Junio C Hamano committed Jan 11, 2010 at 21:16 UTC 229d8107470ded5e5e6c43cf5daeabf382cce9d1
2 files changed -8
strbuf.c
-7
@@ -91,13 +91,6 @@ void strbuf_ltrim(struct strbuf *sb)
91 sb->buf[sb->len] = '\0';
92 }
93
94 -void strbuf_tolower(struct strbuf *sb)
95 -{
96 - int i;
97 - for (i = 0; i < sb->len; i++)
98 - sb->buf[i] = tolower(sb->buf[i]);
99 -}
100 -
94 struct strbuf **strbuf_split(const struct strbuf *sb, int delim)
95 {
96 int alloc = 2, pos = 0;
strbuf.h
-1
@@ -81,7 +81,6 @@ extern void strbuf_trim(struct strbuf *);
81 extern void strbuf_rtrim(struct strbuf *);
82 extern void strbuf_ltrim(struct strbuf *);
83 extern int strbuf_cmp(const struct strbuf *, const struct strbuf *);
84 -extern void strbuf_tolower(struct strbuf *);
84
85 extern struct strbuf **strbuf_split(const struct strbuf *, int delim);
86 extern void strbuf_list_free(struct strbuf **);