Removed the BSize(const BRect&) constructor and added BRect::Size()

instead. Also added a BRect(BPoint, BSize) constructor.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21120 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2007-05-12 16:50:16 +00:00
parent 7f4c0ffe9c
commit a19a660a78
6 changed files with 30 additions and 17 deletions
-11
View File
@@ -7,7 +7,6 @@
#include <limits.h>
#include <Rect.h>
#include <SupportDefs.h>
@@ -25,7 +24,6 @@ public:
inline BSize();
inline BSize(const BSize& other);
inline BSize(float width, float height);
inline BSize(const BRect& rect);
inline float Width() const;
inline float Height() const;
@@ -73,15 +71,6 @@ BSize::BSize(float width, float height)
}
// constructor
inline
BSize::BSize(const BRect& rect)
: width(rect.Width()),
height(rect.Height())
{
}
// Width
inline float
BSize::Width() const