From cf740caaa1b06ee1ac3142c031b7e1aea22f7ac4 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 3 Jul 2013 17:33:41 +0300 Subject: remove unused code from shortcutcontainer. --- src/gui/widgets/emoteshortcutcontainer.cpp | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'src/gui/widgets/emoteshortcutcontainer.cpp') 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(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") } -- cgit v1.2.3-70-g09d2