]> git.localhorst.tv Git - space.git/blobdiff - src/sdl/InitSDL.cpp
move to SDL2
[space.git] / src / sdl / InitSDL.cpp
diff --git a/src/sdl/InitSDL.cpp b/src/sdl/InitSDL.cpp
deleted file mode 100644 (file)
index 0676dfb..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-#include "InitSDL.h"
-
-#include <stdexcept>
-
-using std::runtime_error;
-
-
-namespace space {
-
-InitSDL::InitSDL(Uint32 flags) {
-       if (SDL_Init(flags) != 0) {
-               throw runtime_error("failed to initialize SDL");
-       }
-}
-
-InitSDL::~InitSDL() {
-       SDL_Quit();
-}
-
-}