summaryrefslogtreecommitdiff
path: root/src/resources/resourcemanager/resourcemanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-08-28 20:37:17 +0300
committerAndrei Karas <akaras@inbox.ru>2016-08-28 20:37:17 +0300
commit1747bd6f63710cf728c8cdd2bffd217520ea6a83 (patch)
tree8210fcc52092bf5cf52642e9b8e7cfadfb0fd512 /src/resources/resourcemanager/resourcemanager.cpp
parentd98cdd55a5917e851ea6e6c76a53b152d74b0042 (diff)
downloadmanaverse-1747bd6f63710cf728c8cdd2bffd217520ea6a83.tar.gz
manaverse-1747bd6f63710cf728c8cdd2bffd217520ea6a83.tar.bz2
manaverse-1747bd6f63710cf728c8cdd2bffd217520ea6a83.tar.xz
manaverse-1747bd6f63710cf728c8cdd2bffd217520ea6a83.zip
Remove some unused functions from loadSDLSurface.
Diffstat (limited to 'src/resources/resourcemanager/resourcemanager.cpp')
-rw-r--r--src/resources/resourcemanager/resourcemanager.cpp16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/resources/resourcemanager/resourcemanager.cpp b/src/resources/resourcemanager/resourcemanager.cpp
index 1e8b3cdb7..49a59b832 100644
--- a/src/resources/resourcemanager/resourcemanager.cpp
+++ b/src/resources/resourcemanager/resourcemanager.cpp
@@ -650,22 +650,6 @@ void ResourceManager::deleteInstance()
delete2(instance);
}
-SDL_Surface *ResourceManager::loadSDLSurface(const std::string &filename) const
-{
- if (SDL_RWops *const rw = MPHYSFSRWOPS_openRead(filename.c_str()))
- {
- if (!IMG_isPNG(rw))
- {
- reportAlways("Error, image is not png: %s", filename.c_str());
- return nullptr;
- }
- SDL_Surface *const surface = MIMG_LoadPNG_RW(rw);
- SDL_RWclose(rw);
- return surface;
- }
- return nullptr;
-}
-
void ResourceManager::scheduleDelete(SDL_Surface *const surface)
{
deletedSurfaces.insert(surface);