summaryrefslogtreecommitdiff
path: root/src/core/Registry.cpp
diff options
context:
space:
mode:
authorAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2015-01-20 18:32:09 +0100
committerAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2015-01-20 18:32:09 +0100
commitfaa8c03b69464f31fb419f7e4e4c4c1bd2e6907f (patch)
tree94dd1b59a5c8c1bceb68dc545a72d0952d6f1502 /src/core/Registry.cpp
parent8755bbe309d2f00c7bc73a6a6304ed8860a9a94d (diff)
Adapted FileLocator unit tests, searching in the "UNKNOWN" ResourceType search paths directly in ResoruceLocator instead of Registry
Diffstat (limited to 'src/core/Registry.cpp')
-rw-r--r--src/core/Registry.cpp10
1 files changed, 0 insertions, 10 deletions
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;
}
}