clean dead assignment, start is never used in sdstrim function
@@ -745,10 +745,10 @@ sds sdscatfmt(sds s, char const *fmt, ...) {
* Output will be just "HelloWorld".
*/
sds sdstrim(sds s, const char *cset) {
- char *start, *end, *sp, *ep;
+ char *end, *sp, *ep;
size_t len;
- sp = start = s;
+ sp = s;
ep = end = s+sdslen(s)-1;
while(sp <= end && strchr(cset, *sp)) sp++;
while(ep > sp && strchr(cset, *ep)) ep--;
