[haiku-commits] haiku: hrev45464 - src/apps/deskbar

  • From: jscipione@xxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Sun, 7 Apr 2013 20:54:29 +0200 (CEST)

hrev45464 adds 1 changeset to branch 'master'
old head: 86c4eae3ce225363b52a02ddc755b0e76f4ac1ca
new head: 2b8d4131162ef7f5648ab4feb4860ab61d66e084
overview: http://cgit.haiku-os.org/haiku/log/?qt=range&q=2b8d413+%5E86c4eae

----------------------------------------------------------------------------

2b8d413: Remove dead code

                                     [ John Scipione <jscipione@xxxxxxxxx> ]

----------------------------------------------------------------------------

Revision:    hrev45464
Commit:      2b8d4131162ef7f5648ab4feb4860ab61d66e084
URL:         http://cgit.haiku-os.org/haiku/commit/?id=2b8d413
Author:      John Scipione <jscipione@xxxxxxxxx>
Date:        Sun Apr  7 18:54:06 2013 UTC

----------------------------------------------------------------------------

1 file changed, 1 insertion(+), 13 deletions(-)
src/apps/deskbar/TeamMenuItem.cpp | 14 +-------------

----------------------------------------------------------------------------

diff --git a/src/apps/deskbar/TeamMenuItem.cpp 
b/src/apps/deskbar/TeamMenuItem.cpp
index c902767..76d20f0 100644
--- a/src/apps/deskbar/TeamMenuItem.cpp
+++ b/src/apps/deskbar/TeamMenuItem.cpp
@@ -349,21 +349,9 @@ TTeamMenuItem::DrawExpanderArrow()
        BMenu* menu = Menu();
        BRect frame(Frame());
        BRect rect(0, 0, kSwitchWidth, 10);
+
        rect.OffsetTo(BPoint(frame.right - rect.Width(),
                ContentLocation().y + ((frame.Height() - rect.Height()) / 2)));
-
-#if 0
-       bool canHandle = !fBarView->Dragging()
-               || fBarView->AppCanHandleTypes(Signature());
-       uint32 flags = 0;
-       if (_IsSelected() && canHandle)
-               flags |= BControlLook::B_ACTIVATED;
-
-       if (flags == 0) {
-               menu->SetHighColor(menu->LowColor());
-               menu->FillRect(rect);
-       }
-#endif
        be_control_look->DrawArrowShape(menu, rect, rect, menu->LowColor(),
                fArrowDirection, 0, B_DARKEN_3_TINT);
 }


Other related posts:

  • » [haiku-commits] haiku: hrev45464 - src/apps/deskbar - jscipione