mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 09:28:15 +03:00
Move max off of textboxclass
This is a variable that's only used in one method, and it's always initialized beforehand. No need to carry it around, taking up memory, and making code analysis more complicated.
This commit is contained in:
@@ -20,7 +20,6 @@ textboxclass::textboxclass(void)
|
||||
tr = 0;
|
||||
tg = 0;
|
||||
tb = 0;
|
||||
max = 0;
|
||||
|
||||
flipme = false;
|
||||
|
||||
@@ -111,7 +110,7 @@ void textboxclass::removefast(void)
|
||||
void textboxclass::resize(void)
|
||||
{
|
||||
//Set the width and height to the correct sizes
|
||||
max = 0;
|
||||
int max = 0;
|
||||
for (size_t iter = 0; iter < line.size(); iter++)
|
||||
{
|
||||
unsigned int len = utf8::unchecked::distance(line[iter].begin(), line[iter].end());
|
||||
|
||||
@@ -41,8 +41,6 @@ public:
|
||||
float prev_tl;
|
||||
int tm;
|
||||
|
||||
int max;
|
||||
|
||||
/* Whether to flip text box y-position in Flip Mode. */
|
||||
bool flipme;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user