aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/tinsel/detection.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/engines/tinsel/detection.cpp b/engines/tinsel/detection.cpp
index 22e8806e7e..70bf398baf 100644
--- a/engines/tinsel/detection.cpp
+++ b/engines/tinsel/detection.cpp
@@ -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.