1
0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-06-03 03:23:33 +02: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:
Misa 2021-09-05 20:46:46 -07:00
parent 9a637d0c0f
commit e47ff8131b
2 changed files with 1 additions and 4 deletions

View File

@ -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());

View File

@ -41,8 +41,6 @@ public:
float prev_tl;
int tm;
int max;
/* Whether to flip text box y-position in Flip Mode. */
bool flipme;