From 150ddd17b11b6e937704f73ecb2c63f10e125bd2 Mon Sep 17 00:00:00 2001 From: Stefano Ceccherini Date: Fri, 11 Apr 2008 08:29:54 +0000 Subject: [PATCH] added missing header git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24910 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/private/interface/MenuPrivate.h | 28 +++++++------------------ 1 file changed, 8 insertions(+), 20 deletions(-) diff --git a/headers/private/interface/MenuPrivate.h b/headers/private/interface/MenuPrivate.h index 7f96b4187b..eb78dd44c1 100644 --- a/headers/private/interface/MenuPrivate.h +++ b/headers/private/interface/MenuPrivate.h @@ -1,3 +1,11 @@ +/* + * Copyright 2006-2008, Haiku, Inc. + * Distributed under the terms of the MIT License. + * + * Authors: + * Stefano Ceccherini (stefano.ceccherini@gmail.com) + */ + #ifndef __MENU_PRIVATE_H #define __MENU_PRIVATE_H @@ -54,26 +62,6 @@ point_distance(const BPoint &pointA, const BPoint &pointB) return square(pointA.x - pointB.x) + square(pointA.y - pointB.y); } -/* -static float -point_rect_distance(const BPoint &point, const BRect &rect) -{ - float horizontal = 0; - float vertical = 0; - if (point.x < rect.left) - horizontal = rect.left - point.x; - else if (point.x > rect.right) - horizontal = point.x - rect.right; - - if (point.y < rect.top) - vertical = rect.top - point.y; - else if (point.y > rect.bottom) - vertical = point.y - rect.bottom; - - return square(horizontal) + square(vertical); -} -*/ - #undef square