From c0d45b53edad9a1e4f37e53c6bf547f0168fbd2d Mon Sep 17 00:00:00 2001 From: John Scipione Date: Tue, 28 May 2013 18:08:54 -0400 Subject: [PATCH] Remove DOUBLECLICKBRINGSTOFRONT macro The code that used it has already been removed and if it were enabled it would do bad things. --- src/apps/deskbar/ExpandoMenuBar.cpp | 6 ------ src/apps/deskbar/ExpandoMenuBar.h | 2 -- 2 files changed, 8 deletions(-) diff --git a/src/apps/deskbar/ExpandoMenuBar.cpp b/src/apps/deskbar/ExpandoMenuBar.cpp index 279a3d6a78..84e6d66122 100644 --- a/src/apps/deskbar/ExpandoMenuBar.cpp +++ b/src/apps/deskbar/ExpandoMenuBar.cpp @@ -713,15 +713,9 @@ TExpandoMenuBar::RemoveTeam(team_id team, bool partial) if (TTeamMenuItem* item = dynamic_cast(ItemAt(i))) { if (item->Teams()->HasItem((void*)(addr_t)team)) { item->Teams()->RemoveItem(team); - if (partial) return; -#ifdef DOUBLECLICKBRINGSTOFRONT - if (fLastClickedItem == i) - fLastClickedItem = -1; -#endif - BAutolock locker(sMonLocker); // make the update thread wait RemoveItem(i); diff --git a/src/apps/deskbar/ExpandoMenuBar.h b/src/apps/deskbar/ExpandoMenuBar.h index 8bcef7cf3a..6cb2b7d066 100644 --- a/src/apps/deskbar/ExpandoMenuBar.h +++ b/src/apps/deskbar/ExpandoMenuBar.h @@ -45,8 +45,6 @@ All rights reserved. #include -//#define DOUBLECLICKBRINGSTOFRONT - enum drag_and_drop_selection { kNoSelection, kDeskbarMenuSelection,