summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/resources/resourcemanager.cpp24
-rw-r--r--src/resources/resourcemanager.h19
2 files changed, 0 insertions, 43 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)
{
diff --git a/src/resources/resourcemanager.h b/src/resources/resourcemanager.h
index b207585f..7a92818f 100644
--- a/src/resources/resourcemanager.h
+++ b/src/resources/resourcemanager.h
@@ -105,16 +105,6 @@ class ResourceManager
std::string getPath(const std::string &file);
/**
- * Returns the resource with the specified idPath, or 0 when no such
- * resource is available. Increments the reference count.
- *
- * @param idPath The resource identifier path.
- * @return A valid resource or <code>NULL</code> if the resource could
- * not be found.
- */
- Resource *get(const std::string &idPath);
-
- /**
* Creates a resource and adds it to the resource map.
*
* @param idPath The resource identifier path.
@@ -137,15 +127,6 @@ class ResourceManager
Resource *load(const std::string &path, loader fun);
/**
- * Adds a preformatted resource to the resource map.
- *
- * @param idPath The resource identifier path.
- * @param resource The Resource to add.
- * @return true if successful, false otherwise.
- */
- bool addResource(const std::string &idPath, Resource *resource);
-
- /**
* Copies a file from one place to another (useful for extracting
* raw files from a zip archive, for example)
*