aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Horn2011-03-30 00:07:10 +0200
committerMax Horn2011-03-30 00:07:16 +0200
commit7b47bf4638462d44fb9e11b9f346bc2811f6f1f7 (patch)
treeee14944eb984eb50e91be3f178cd9ac0cc438580
parent046a34bd42ecfc975e7658ffade8cf6768047ad9 (diff)
downloadscummvm-rg350-7b47bf4638462d44fb9e11b9f346bc2811f6f1f7.tar.gz
scummvm-rg350-7b47bf4638462d44fb9e11b9f346bc2811f6f1f7.tar.bz2
scummvm-rg350-7b47bf4638462d44fb9e11b9f346bc2811f6f1f7.zip
TINSEL: Remove dead variables
-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.