summaryrefslogtreecommitdiff
path: root/src/resources/resourcemanager.h
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <bjorn@lindeijer.nl>2024-01-29 14:30:51 +0100
committerThorbjørn Lindeijer <bjorn@lindeijer.nl>2024-01-29 14:30:51 +0100
commitaf0dc52db16a0e1a0d11fcba45e21dfbbedfce5c (patch)
tree09ea59c7984803154df5728ed829ecbbc6dade3b /src/resources/resourcemanager.h
parent59ee2d9dc81b2ed89f073b1541fc8d8c4f1f28f8 (diff)
downloadmana-af0dc52db16a0e1a0d11fcba45e21dfbbedfce5c.tar.gz
mana-af0dc52db16a0e1a0d11fcba45e21dfbbedfce5c.tar.bz2
mana-af0dc52db16a0e1a0d11fcba45e21dfbbedfce5c.tar.xz
mana-af0dc52db16a0e1a0d11fcba45e21dfbbedfce5c.zip
Removed remnants of alpha cache in ResourceManager
Continuation of 2c51c98625b225cecfb9628c30d62d4e30f7e3e1, which had already removed most of the alpha cache in Image.
Diffstat (limited to 'src/resources/resourcemanager.h')
-rw-r--r--src/resources/resourcemanager.h13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/resources/resourcemanager.h b/src/resources/resourcemanager.h
index a087082d..9a427ba0 100644
--- a/src/resources/resourcemanager.h
+++ b/src/resources/resourcemanager.h
@@ -26,7 +26,6 @@
#include <map>
#include <string>
#include <vector>
-#include <set>
class Image;
class ImageSet;
@@ -35,7 +34,6 @@ class Resource;
class SoundEffect;
class SpriteDef;
-struct SDL_Surface;
struct SDL_RWops;
/**
@@ -208,16 +206,6 @@ class ResourceManager
std::vector<std::string> loadTextFile(const std::string &fileName);
/**
- * Loads the given filename as an SDL surface. The returned surface is
- * expected to be freed by the caller using SDL_FreeSurface.
- */
- SDL_Surface *loadSDLSurface(const std::string &filename);
-
- void scheduleDelete(SDL_Surface* surface);
-
- void clearScheduled();
-
- /**
* Returns an instance of the class, creating one if it does not
* already exist.
*/
@@ -251,7 +239,6 @@ class ResourceManager
static ResourceManager *instance;
using Resources = std::map<std::string, Resource *>;
using ResourceIterator = Resources::iterator;
- std::set<SDL_Surface*> mDeletedSurfaces;
Resources mResources;
Resources mOrphanedResources;
time_t mOldestOrphan;