1
0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-06-25 22:18:30 +02:00

Remove blockclass::clear(), simplify blockclass initializations

Previously, it was used in order to clear a block and deactivate it, and
the constructor function simply called clear() in order to not duplicate
code. However, clear() is no longer necessary (just remove the block
from the blocks vector), and so we can put initialization right back in
the constructor function.
This commit is contained in:
Misa 2020-04-03 16:49:46 -07:00 committed by Ethan Lee
parent b027a3ddc6
commit 9de5b57989
2 changed files with 0 additions and 7 deletions

View File

@ -1,11 +1,6 @@
#include "BlockV.h"
blockclass::blockclass()
{
clear();
}
void blockclass::clear()
{
type = 0;
trigger = 0;

View File

@ -9,8 +9,6 @@ class blockclass
public:
blockclass();
void clear();
void rectset(const int xi, const int yi, const int wi, const int hi);
void setblockcolour(std::string col);