Remove useless BRect* version of CenterIn, make remaining version take a const

BRect reference.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32614 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ryan Leavengood 2009-08-22 16:10:18 +00:00
parent 467c2e8cb5
commit b0586d610a
2 changed files with 2 additions and 10 deletions

View File

@ -168,8 +168,7 @@ public:
void ResizeBy(float dx, float dy);
void ResizeTo(float width, float height);
void CenterIn(BRect* rect);
void CenterIn(BRect rect);
void CenterIn(const BRect& rect);
void CenterOnScreen();
virtual void Show();

View File

@ -2458,7 +2458,7 @@ BWindow::ResizeTo(float width, float height)
void
BWindow::CenterIn(BRect rect)
BWindow::CenterIn(const BRect& rect)
{
// Force layout resizing if needed
if (GetLayout() != NULL) {
@ -2472,13 +2472,6 @@ BWindow::CenterIn(BRect rect)
}
void
BWindow::CenterIn(BRect* rect)
{
CenterIn(*rect);
}
void
BWindow::CenterOnScreen()
{