diff options
Diffstat (limited to 'src/guichan/image.cpp')
-rw-r--r-- | src/guichan/image.cpp | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/src/guichan/image.cpp b/src/guichan/image.cpp index 1a560217f..09129e61f 100644 --- a/src/guichan/image.cpp +++ b/src/guichan/image.cpp @@ -49,15 +49,11 @@ #include "guichan/image.hpp" #include "guichan/exception.hpp" -#include "guichan/imageloader.hpp" #include "debug.h" namespace gcn { - - ImageLoader* Image::mImageLoader = nullptr; - Image::Image() { } @@ -65,26 +61,4 @@ namespace gcn Image::~Image() { } - - void Image::setImageLoader(ImageLoader* imageLoader) - { - mImageLoader = imageLoader; - } - - ImageLoader* Image::getImageLoader() - { - return mImageLoader; - } - - Image* Image::load(const std::string& filename, - bool convertToDisplayFormat) - { - if (!mImageLoader) - { - throw GCN_EXCEPTION("Trying to load an image but " - "no image loader is set."); - } - - return mImageLoader->load(filename, convertToDisplayFormat); - } } |