summaryrefslogtreecommitdiff
path: root/src/resources/resourcemanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources/resourcemanager.cpp')
-rw-r--r--src/resources/resourcemanager.cpp24
1 files changed, 0 insertions, 24 deletions
diff --git a/src/resources/resourcemanager.cpp b/src/resources/resourcemanager.cpp
index e215cfd7..e2979f06 100644
--- a/src/resources/resourcemanager.cpp
+++ b/src/resources/resourcemanager.cpp
@@ -230,30 +230,6 @@ std::string ResourceManager::getPath(const std::string &file)
return path;
}
-bool ResourceManager::addResource(const std::string &idPath,
- Resource *resource)
-{
- if (resource)
- {
- resource->incRef();
- resource->mIdPath = idPath;
- mResources[idPath] = resource;
- return true;
- }
- return false;
-}
-
-Resource *ResourceManager::get(const std::string &idPath)
-{
- auto resIter = mResources.find(idPath);
- if (resIter != mResources.end())
- {
- resIter->second->incRef();
- return resIter->second;
- }
- return nullptr;
-}
-
Resource *ResourceManager::get(const std::string &idPath,
const std::function<Resource *()> &generator)
{