CGE2: Remove Spare::locate(char *file), since it's not used anymore.

This commit is contained in:
uruk 2014-07-21 20:20:33 +02:00
parent 6e26422468
commit bac952917f
2 changed files with 0 additions and 9 deletions

View File

@ -67,14 +67,6 @@ Sprite *Spare::locate(int ref) {
return nullptr;
}
Sprite *Spare::locate(char *file) {
for (uint i = 0; i < _container.size(); ++i) {
if (strcmp(_container[i]->_file, file) == 0)
return _container[i];
}
return nullptr;
}
Sprite *Spare::take(int ref) {
Sprite *spr = nullptr;
if ((spr = locate(ref)) != nullptr) {

View File

@ -40,7 +40,6 @@ public:
~Spare() { clear(); }
void store(Sprite *spr);
Sprite *locate(int ref);
Sprite *locate(char *file);
Sprite *take(int ref);
void takeScene(int cav);
void update(Sprite *spr);