From 23d9d5b509f290c44c6e2280d287da96eeabfe67 Mon Sep 17 00:00:00 2001 From: Tobia Tesan Date: Sat, 13 Jul 2013 01:08:43 +0200 Subject: WINTERMUTE: Remove fixedPath snippet fixedPath is apparently never used anywhere else in the class and this loop can cause the next one to never get to run. --- engines/wintermute/base/file/base_disk_file.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/engines/wintermute/base/file/base_disk_file.cpp b/engines/wintermute/base/file/base_disk_file.cpp index 3c1ecc7a73..5ffb06f854 100644 --- a/engines/wintermute/base/file/base_disk_file.cpp +++ b/engines/wintermute/base/file/base_disk_file.cpp @@ -66,12 +66,6 @@ static Common::FSNode getNodeForRelativePath(const Common::String &filename) { const Common::FSNode gameDataDir(ConfMan.get("path")); Common::FSNode curNode = gameDataDir; - Common::String fixedPath = ""; - while (!path.empty()) { - fixedPath += path.nextToken() + "/"; - } - fixedPath.deleteLastChar(); - // Parse all path-elements while (!path.empty()) { // Get the next path-component by slicing on '\\' -- cgit v1.2.3