Permalink
Browse files

ui: remove unused variable

  • Loading branch information...
1 parent 14b4bc0 commit d7991ca3f62f1b4f0c1fd2f81d5287fa503d7678 @Aranud Aranud committed Feb 16, 2017
Showing with 0 additions and 4 deletions.
  1. +0 −4 src/ui/ui_shared.c
View
@@ -1782,7 +1782,6 @@ void BG_FitTextToWidth_Ext(char *instr, float scale, float w, size_t size, fontH
{
char buffer[1024];
char *s, *p, *c, *ls = NULL;
- int l = 0;
Q_strncpyz(buffer, instr, 1024);
memset(instr, 0, size);
@@ -1793,7 +1792,6 @@ void BG_FitTextToWidth_Ext(char *instr, float scale, float w, size_t size, fontH
while (*p)
{
*c = *p++;
- l++;
if (*c == ' ')
{
@@ -1805,7 +1803,6 @@ void BG_FitTextToWidth_Ext(char *instr, float scale, float w, size_t size, fontH
if (*p == '\n')
{
s = c + 1;
- l = 0;
}
else if (DC->textWidthExt(s, scale, 0, font) > w)
{
@@ -1822,7 +1819,6 @@ void BG_FitTextToWidth_Ext(char *instr, float scale, float w, size_t size, fontH
}
ls = NULL;
- l = 0;
}
}

0 comments on commit d7991ca

Please sign in to comment.