From 9bc564d99774045fa0c10f253dd54b223416bc34 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 28 Dec 2013 13:42:13 +0300 Subject: Remove unused method from renders. --- src/render/graphics.cpp | 13 ------------- src/render/graphics.h | 8 -------- 2 files changed, 21 deletions(-) (limited to 'src/render') diff --git a/src/render/graphics.cpp b/src/render/graphics.cpp index 83e5a45bf..9072c0a29 100644 --- a/src/render/graphics.cpp +++ b/src/render/graphics.cpp @@ -440,19 +440,6 @@ int Graphics::getHeight() const return mHeight; } -bool Graphics::drawImage(const Image *image, int x, int y) -{ - if (image) - { - return drawImage2(image, 0, 0, x, y, - image->mBounds.w, image->mBounds.h, false); - } - else - { - return false; - } -} - void Graphics::drawImageRect(const int x, const int y, const int w, const int h, const Image *const topLeft, diff --git a/src/render/graphics.h b/src/render/graphics.h index 5bb82e40d..2aa850d41 100644 --- a/src/render/graphics.h +++ b/src/render/graphics.h @@ -150,14 +150,6 @@ class Graphics : public gcn::Graphics */ virtual bool resizeScreen(const int width, const int height); - /** - * Blits an image onto the screen. - * - * @return true if the image was blitted properly - * false otherwise. - */ - bool drawImage(const Image *image, int x, int y); - // override unused abstract function void drawImage(const gcn::Image* image A_UNUSED, int srcX A_UNUSED, int srcY A_UNUSED, -- cgit v1.2.3-70-g09d2