Auto merge of #413 - charsyam:feature/remove-unused-code, r=badboy

remove unnecessory code

remove some  unnecessory code. It is not used any other parts
This commit is contained in:
not-a-robot 2016-04-20 17:07:21 +02:00
commit be2c4272c4

4
sds.c
View File

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