summaryrefslogtreecommitdiff
path: root/src/core.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core.cpp')
-rw-r--r--src/core.cpp19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/core.cpp b/src/core.cpp
index bd5ea75..c4e03a4 100644
--- a/src/core.cpp
+++ b/src/core.cpp
@@ -175,24 +175,6 @@ unload_sdl(void *obj)
}
void
-load_sdl_image(void *obj)
-{
- int flags = IMG_INIT_JPG|IMG_INIT_PNG|IMG_INIT_TIF;
- if(!(IMG_Init(flags) & flags))
- {
- std::string error{"Could not initialize SDL image → "};
- error += IMG_GetError();
- throw CommandError{error};
- }
-}
-
-void
-unload_sdl_image(void *obj)
-{
- IMG_Quit();
-}
-
-void
load_sdl_mixer(void *obj)
{
int flags = MIX_INIT_OGG|MIX_INIT_MOD;
@@ -696,7 +678,6 @@ const CommandChain cg_sCore::loader{
{&load_mruby_symbols, nullptr},
{&load_game, nullptr},
{&load_sdl, &unload_sdl},
- {&load_sdl_image, &unload_sdl_image},
{&load_sdl_mixer, &unload_sdl_mixer},
{&load_sdl_open_audio, &unload_sdl_open_audio},
{&load_window, &unload_window},