TINSEL: Remove dead variables

This commit is contained in:
Max Horn 2011-03-30 00:07:10 +02:00
parent 046a34bd42
commit 7b47bf4638

View File

@ -280,11 +280,9 @@ const ADGameDescription *TinselMetaEngine::fallbackDetect(const Common::FSList &
ADGameDescList matched;
int maxFilesMatched = 0;
bool gotAnyMatchesWithAllFiles = false;
// MD5 based matching
uint i;
for (i = 0, g = &Tinsel::gameDescriptions[0]; g->desc.gameid != 0; ++g) {
for (g = &Tinsel::gameDescriptions[0]; g->desc.gameid != 0; ++g) {
if (strcmp(g->desc.gameid, "dw2") != 0)
continue;
@ -327,9 +325,6 @@ const ADGameDescription *TinselMetaEngine::fallbackDetect(const Common::FSList &
}
}
if (allFilesPresent)
gotAnyMatchesWithAllFiles = true;
if (!fileMissing) {
// Count the number of matching files. Then, only keep those
// entries which match a maximal amount of files.