From cc78907ee5b2ed84760534897f88f8c1fcce957d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 27 Dec 2012 16:32:26 +0300 Subject: Remove some unused code from guichan. --- src/guichan/graphics.cpp | 21 ++------------------- src/guichan/include/guichan/graphics.hpp | 14 -------------- 2 files changed, 2 insertions(+), 33 deletions(-) (limited to 'src') diff --git a/src/guichan/graphics.cpp b/src/guichan/graphics.cpp index 756b5a9b5..ce8ef5f18 100644 --- a/src/guichan/graphics.cpp +++ b/src/guichan/graphics.cpp @@ -152,27 +152,10 @@ namespace gcn mFont = font; } +/* void Graphics::drawText(const std::string& text, int x, int y, Alignment alignment) { - FUNC_BLOCK("Graphics::drawText", 1) - if (!mFont) - throw GCN_EXCEPTION("No font set."); - - switch (alignment) - { - case LEFT: - mFont->drawString(this, text, x, y); - break; - case CENTER: - mFont->drawString(this, text, x - - mFont->getWidth(text) / 2, y); - break; - case RIGHT: - mFont->drawString(this, text, x - mFont->getWidth(text), y); - break; - default: - throw GCN_EXCEPTION("Unknown alignment."); - } } +*/ } diff --git a/src/guichan/include/guichan/graphics.hpp b/src/guichan/include/guichan/graphics.hpp index 291e01766..d8d8cdf15 100644 --- a/src/guichan/include/guichan/graphics.hpp +++ b/src/guichan/include/guichan/graphics.hpp @@ -267,20 +267,6 @@ namespace gcn */ virtual void setFont(Font* font); - /** - * Draws text. - * - * @param text The text to draw. - * @param x The x coordinate where to draw the text. - * @param y The y coordinate where to draw the text. - * @param alignment The alignemnt to use when drawing. - * @throws Exception when no font has been set. - */ - virtual void drawText(const std::string& text, - int x, - int y, - Alignment alignment = LEFT); - protected: /** * Holds the clip area stack. -- cgit v1.2.3-70-g09d2