mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2025-01-08 18:09:45 +01: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:
parent
9a637d0c0f
commit
e47ff8131b
2 changed files with 1 additions and 4 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue