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.cpp22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/resources/resourcemanager.cpp b/src/resources/resourcemanager.cpp
index a810a11e..71d9ca1c 100644
--- a/src/resources/resourcemanager.cpp
+++ b/src/resources/resourcemanager.cpp
@@ -536,25 +536,3 @@ std::vector<std::string> ResourceManager::loadTextFile(
free(fileContents);
return lines;
}
-
-SDL_Surface *ResourceManager::loadSDLSurface(const std::string &filename)
-{
- SDL_Surface *surface = nullptr;
- if (SDL_RWops *rw = PHYSFSRWOPS_openRead(filename.c_str()))
- surface = IMG_Load_RW(rw, 1);
- return surface;
-}
-
-void ResourceManager::scheduleDelete(SDL_Surface* surface)
-{
- mDeletedSurfaces.insert(surface);
-}
-
-void ResourceManager::clearScheduled()
-{
- for (auto mDeletedSurface : mDeletedSurfaces)
- {
- SDL_FreeSurface(mDeletedSurface);
- }
- mDeletedSurfaces.clear();
-}