From 6f05b1027f6a97cc20f6d4341d09e670b0faa0d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Tue, 11 May 2010 15:38:21 +0000 Subject: [PATCH] Removed stuff which was completely unused. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36790 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/interface/Menu.cpp | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/src/kits/interface/Menu.cpp b/src/kits/interface/Menu.cpp index e9c24efb7b..654ce6cbd4 100644 --- a/src/kits/interface/Menu.cpp +++ b/src/kits/interface/Menu.cpp @@ -1554,10 +1554,6 @@ BMenu::_Hide() const static bigtime_t kOpenSubmenuDelay = 225000; const static bigtime_t kNavigationAreaTimeout = 1000000; -const static bigtime_t kHysteresis = 200000; - // TODO: Test and reduce if needed. -const static int32 kMouseMotionThreshold = 15; - // TODO: Same as above. Actually, we could get rid of the kHysteresis BMenuItem* @@ -1565,7 +1561,8 @@ BMenu::_Track(int* action, long start) { // TODO: cleanup BMenuItem* item = NULL; - BRect navAreaRectAbove, navAreaRectBelow; + BRect navAreaRectAbove; + BRect navAreaRectBelow; bigtime_t selectedTime = system_time(); bigtime_t navigationAreaTime = 0; @@ -1580,8 +1577,6 @@ BMenu::_Track(int* action, long start) UnlockLooper(); } - int32 mouseSpeed = 0; - bigtime_t pollTime = system_time(); bool releasedOnce = buttons == 0; while (fState != MENU_STATE_CLOSED) { if (_CustomTrackingWantsToQuit()) @@ -1677,14 +1672,6 @@ BMenu::_Track(int* action, long start) UnlockLooper(); } while (newLocation == location && newButtons == buttons && !(item && item->Submenu() != NULL)); - bigtime_t newPollTime = system_time(); - - // mouseSpeed in px per ms - // (actually point_distance returns the square of the distance, - // so it's more px^2 per ms) - mouseSpeed = (int32)(point_distance(newLocation, location) * 1000 - / (newPollTime - pollTime)); - pollTime = newPollTime; if (newLocation != location || newButtons != buttons) { if (!releasedOnce && newButtons == 0 && buttons != 0)