summaryrefslogtreecommitdiff
path: root/src/resources/resourcemanager/resourcemanager.cpp
diff options
context:
space:
mode:
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);