diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-12-27 16:32:26 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-12-27 23:15:05 +0300 |
commit | cc78907ee5b2ed84760534897f88f8c1fcce957d (patch) | |
tree | 978f0d2ab18b5c8257106e689fda804885c61bde /src/guichan/graphics.cpp | |
parent | fa0ef1ff62b23e830c70f6168f6256a1937b8195 (diff) | |
download | manaverse-cc78907ee5b2ed84760534897f88f8c1fcce957d.tar.gz manaverse-cc78907ee5b2ed84760534897f88f8c1fcce957d.tar.bz2 manaverse-cc78907ee5b2ed84760534897f88f8c1fcce957d.tar.xz manaverse-cc78907ee5b2ed84760534897f88f8c1fcce957d.zip |
Remove some unused code from guichan.
Diffstat (limited to 'src/guichan/graphics.cpp')
-rw-r--r-- | src/guichan/graphics.cpp | 21 |
1 files changed, 2 insertions, 19 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."); - } } +*/ } |