diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-09-24 13:26:20 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-09-24 13:31:01 +0300 |
commit | bd231fc40ca54f7dd2e091c5ab414f4cebb3b05e (patch) | |
tree | f5bd340d41e7d0d7dda89c2c614ad1e5ff44fbc1 /src/guichan/image.cpp | |
parent | 64ed19bc03e994b54abc39532c72ed6e374948b9 (diff) | |
download | manaverse-bd231fc40ca54f7dd2e091c5ab414f4cebb3b05e.tar.gz manaverse-bd231fc40ca54f7dd2e091c5ab414f4cebb3b05e.tar.bz2 manaverse-bd231fc40ca54f7dd2e091c5ab414f4cebb3b05e.tar.xz manaverse-bd231fc40ca54f7dd2e091c5ab414f4cebb3b05e.zip |
Remove unused guichan classes.
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); - } } |