Remove unnecessary code
This commit is contained in:
parent
42c2b39692
commit
f3c3ed06c8
2 changed files with 0 additions and 3 deletions
|
@ -26,14 +26,12 @@ char *syntax_to_color(int hl, size_t *len)
|
||||||
case HL_MATCH:;
|
case HL_MATCH:;
|
||||||
char *str = malloc(COLOR_LEN * 2 + 1);
|
char *str = malloc(COLOR_LEN * 2 + 1);
|
||||||
snprintf(str, COLOR_LEN * 2 + 1, "%s%s", BLACK_BG, SKY_FG);
|
snprintf(str, COLOR_LEN * 2 + 1, "%s%s", BLACK_BG, SKY_FG);
|
||||||
str[COLOR_LEN * 2] = '\0';
|
|
||||||
*len = COLOR_LEN * 2;
|
*len = COLOR_LEN * 2;
|
||||||
return str;
|
return str;
|
||||||
|
|
||||||
case HL_RESET:;
|
case HL_RESET:;
|
||||||
char *res = malloc(COLOR_LEN * 2 + 1);
|
char *res = malloc(COLOR_LEN * 2 + 1);
|
||||||
snprintf(res, COLOR_LEN * 2 + 1, "%s%s", WHITE_BG, BLACK_FG);
|
snprintf(res, COLOR_LEN * 2 + 1, "%s%s", WHITE_BG, BLACK_FG);
|
||||||
res[COLOR_LEN * 2] = '\0';
|
|
||||||
*len = COLOR_LEN * 2;
|
*len = COLOR_LEN * 2;
|
||||||
return res;
|
return res;
|
||||||
|
|
||||||
|
|
|
@ -178,7 +178,6 @@ void draw_rows(struct abuf *ab)
|
||||||
memcpy(current_color, color, len);
|
memcpy(current_color, color, len);
|
||||||
abAppend(ab, color, len);
|
abAppend(ab, color, len);
|
||||||
}
|
}
|
||||||
fclose(f);
|
|
||||||
free(color);
|
free(color);
|
||||||
abAppend(ab, &c[j], 1);
|
abAppend(ab, &c[j], 1);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue