mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 09:28:15 +03:00
Remove now-useless function editorclass::countstuff()
Previously, it existed solely to count the number of trinkets and crewmates when loading a level, because we were keeping track of the amount of them manually, incrementing and decrementing every time a trinket or crewmate was added or removed, but loading a new level represented a case that could potentially not be an increment or decrement. However, since the amount tracking is now handled automatically, this function now does nothing, and can be safely removed.
This commit is contained in:
@@ -1618,10 +1618,6 @@ int editorclass::findwarptoken(int t)
|
||||
return 0;
|
||||
}
|
||||
|
||||
void editorclass::countstuff()
|
||||
{
|
||||
}
|
||||
|
||||
void editorclass::load(std::string& _path)
|
||||
{
|
||||
reset();
|
||||
@@ -1846,7 +1842,6 @@ void editorclass::load(std::string& _path)
|
||||
}
|
||||
|
||||
gethooks();
|
||||
countstuff();
|
||||
version=2;
|
||||
}
|
||||
|
||||
|
||||
@@ -138,7 +138,6 @@ class editorclass{
|
||||
int findtrinket(int t);
|
||||
int findcrewmate(int t);
|
||||
int findwarptoken(int t);
|
||||
void countstuff();
|
||||
void findstartpoint();
|
||||
int getlevelcol(int t);
|
||||
int getenemycol(int t);
|
||||
|
||||
Reference in New Issue
Block a user