summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-12-27 16:32:26 +0300
committerAndrei Karas <akaras@inbox.ru>2012-12-27 23:15:05 +0300
commitcc78907ee5b2ed84760534897f88f8c1fcce957d (patch)
tree978f0d2ab18b5c8257106e689fda804885c61bde /src
parentfa0ef1ff62b23e830c70f6168f6256a1937b8195 (diff)
downloadmanaverse-cc78907ee5b2ed84760534897f88f8c1fcce957d.tar.gz
manaverse-cc78907ee5b2ed84760534897f88f8c1fcce957d.tar.bz2
manaverse-cc78907ee5b2ed84760534897f88f8c1fcce957d.tar.xz
manaverse-cc78907ee5b2ed84760534897f88f8c1fcce957d.zip
Remove some unused code from guichan.
Diffstat (limited to 'src')
-rw-r--r--src/guichan/graphics.cpp21
-rw-r--r--src/guichan/include/guichan/graphics.hpp14
2 files changed, 2 insertions, 33 deletions
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.