Remove useless variable lw from textboxclass

This variable is only assigned to, but never read from. Hence, it is
useless, and should be removed to make code analysis less complicated.
This commit is contained in:
Misa committed 2021-09-06 00:56:49 -07:00
1 parent e47ff8131b
commit 69fcdf9217
2 files changed
+1 -3

No files matched your search

-2
View File
@@ -6,7 +6,6 @@ textboxclass::textboxclass(void)
{
w = 0;
h = 0;
lw = 0;
tl = 0;
prev_tl = 0;
tm = 0;
@@ -117,7 +116,6 @@ void textboxclass::resize(void)
if (len > (unsigned int)max) max = len;
}
lw = max;
w = (max +2) * 8;
h = (line.size() + 2) * 8;
}
+1 -1
View File
@@ -32,7 +32,7 @@ public:
public:
//Fundamentals
std::vector<std::string> line;
int xp, yp, lw, w, h;
int xp, yp, w, h;
int r,g,b;
int tr,tg,tb;
int timer;