remove unused code

This commit is contained in:
charsyam 2016-04-20 23:15:41 +09:00
parent 36bddcf6ed
commit 921e1aa84b
1 changed files with 1 additions and 3 deletions

4
sds.c
View File

@ -424,14 +424,12 @@ sds sdscatprintf(sds s, const char *fmt, ...) {
*/
sds sdscatfmt(sds s, char const *fmt, ...) {
struct sdshdr *sh = (void*) (s-(sizeof(struct sdshdr)));
size_t initlen = sdslen(s);
const char *f = fmt;
int i;
va_list ap;
va_start(ap,fmt);
f = fmt; /* Next format specifier byte to process. */
i = initlen; /* Position of the next byte to write to dest str. */
i = sdslen(s); /* Position of the next byte to write to dest str. */
while(*f) {
char next, *str;
int l;