From faa8c03b69464f31fb419f7e4e4c4c1bd2e6907f Mon Sep 17 00:00:00 2001 From: Andreas Stöckel Date: Tue, 20 Jan 2015 18:32:09 +0100 Subject: Adapted FileLocator unit tests, searching in the "UNKNOWN" ResourceType search paths directly in ResoruceLocator instead of Registry --- src/core/Registry.cpp | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'src/core/Registry.cpp') diff --git a/src/core/Registry.cpp b/src/core/Registry.cpp index 9427aed..86665a2 100644 --- a/src/core/Registry.cpp +++ b/src/core/Registry.cpp @@ -70,16 +70,6 @@ bool Registry::locateResource(Resource &resource, const std::string &path, } } - // If this did not work out, retry but use the UNKNOWN type. - if (type != ResourceType::UNKNOWN) { - for (auto &locator : locators) { - if (locator->locate(resource, path, ResourceType::UNKNOWN, - relativeTo)) { - return true; - } - } - } - return false; } } -- cgit v1.2.3