summaryrefslogtreecommitdiff
path: root/src/gui/widgets/emoteshortcutcontainer.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-07-03 17:33:41 +0300
committerAndrei Karas <akaras@inbox.ru>2013-07-03 17:33:41 +0300
commitcf740caaa1b06ee1ac3142c031b7e1aea22f7ac4 (patch)
tree55f781d665f576e119ce38266415c08e2ae1fb31 /src/gui/widgets/emoteshortcutcontainer.cpp
parent7f8fd01cdd56b322c19e58c19d483fb32fb05cb5 (diff)
downloadmv-cf740caaa1b06ee1ac3142c031b7e1aea22f7ac4.tar.gz
mv-cf740caaa1b06ee1ac3142c031b7e1aea22f7ac4.tar.bz2
mv-cf740caaa1b06ee1ac3142c031b7e1aea22f7ac4.tar.xz
mv-cf740caaa1b06ee1ac3142c031b7e1aea22f7ac4.zip
remove unused code from shortcutcontainer.
Diffstat (limited to 'src/gui/widgets/emoteshortcutcontainer.cpp')
-rw-r--r--src/gui/widgets/emoteshortcutcontainer.cpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/gui/widgets/emoteshortcutcontainer.cpp b/src/gui/widgets/emoteshortcutcontainer.cpp
index 689f39d0c..10ef44f6a 100644
--- a/src/gui/widgets/emoteshortcutcontainer.cpp
+++ b/src/gui/widgets/emoteshortcutcontainer.cpp
@@ -139,20 +139,6 @@ void EmoteShortcutContainer::draw(gcn::Graphics *graphics)
}
}
- if (mEmoteMoved && mEmoteMoved < static_cast<unsigned>(sz) + 1
- && mEmoteMoved > 0)
- {
- // Draw the emote image being dragged by the cursor.
- const EmoteSprite *const sprite = mEmoteImg[mEmoteMoved - 1];
- if (sprite && sprite->sprite)
- {
- const AnimatedSprite *const spr = sprite->sprite;
- const int tPosX = mCursorPosX - (spr->getWidth() / 2);
- const int tPosY = mCursorPosY - (spr->getHeight() / 2);
-
- spr->draw(g, tPosX, tPosY);
- }
- }
BLOCK_END("EmoteShortcutContainer::draw")
}