1
0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-06-09 14:23:38 +02:00

Remove textboxclass's firstcreate and clear, simplify initializations

As a result of the previous commit, textboxclass::clear() is now unused.
textboxclass::firstcreate() was already useless. So remove both those
functions and initialize the values in the textboxclass constructor.
This commit is contained in:
Misa 2020-04-03 17:44:25 -07:00 committed by Ethan Lee
parent 09c9a6b862
commit 31321ee19c
2 changed files with 0 additions and 24 deletions

View File

@ -3,12 +3,6 @@
textboxclass::textboxclass()
{
firstcreate();
}
void textboxclass::firstcreate()
{
//Like clear, only it creates the actual arrays, etc
x = 0;
y = 0;
w = 0;
@ -19,20 +13,6 @@ void textboxclass::firstcreate()
timer = 0;
}
void textboxclass::clear()
{
//Set all values to a default, required for creating a new entity
line.resize(1);
xp = 0;
yp = 0;
w = 0;
h = 0;
lw = 0;
tl = 0;
tm = 0;
timer = 0;
}
void textboxclass::centerx()
{
resize();

View File

@ -10,10 +10,6 @@ class textboxclass
public:
textboxclass();
void firstcreate();
void clear();
void centerx();
void centery();