Remove unused Draw function. Fixes CID 10350.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40264 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Rene Gollent
2011-01-22 13:52:57 +00:00
parent d2f34ea3e7
commit 908d7185b0
2 changed files with 6 additions and 27 deletions
-20
View File
@@ -306,26 +306,6 @@ TReplicantTray::AdjustPlacement()
}
void
TReplicantTray::Draw(BRect)
{
return;
rgb_color menuColor = ViewColor();
rgb_color vdark = tint_color(menuColor, B_DARKEN_3_TINT);
rgb_color light = tint_color(menuColor, B_LIGHTEN_2_TINT);
BRect frame(Bounds());
SetHighColor(light);
StrokeLine(frame.LeftBottom(), frame.RightBottom());
StrokeLine(frame.RightBottom(), frame.RightTop());
SetHighColor(vdark);
StrokeLine(frame.RightTop(), frame.LeftTop());
StrokeLine(frame.LeftTop(), frame.LeftBottom());
}
void
TReplicantTray::MessageReceived(BMessage* message)
{
+6 -7
View File
@@ -79,7 +79,6 @@ public:
virtual void AttachedToWindow();
virtual void DetachedFromWindow();
virtual void Draw(BRect updateRect);
virtual void MouseDown(BPoint point);
virtual void MessageReceived(BMessage*);
virtual void GetPreferredSize(float*, float*);
@@ -144,7 +143,7 @@ private:
void RemoveItem(int32 id);
void MoveItem(entry_ref*, ino_t toDirectory);
#endif
#endif
BPoint LocationForReplicant(int32 index, float width);
BShelf* Shelf() const;
@@ -160,7 +159,7 @@ private:
bool fMultiRowMode;
float fMinimumTrayWidth;
bool fAlignmentSupport;
bool fAlignmentSupport;
#ifdef DB_ADDONS
BList* fItemList;
uint64 fDeskbarSecurityCode;
@@ -181,7 +180,7 @@ enum {
class TDragRegion : public BControl {
public:
TDragRegion(TBarView*, BView*);
virtual void AttachedToWindow();
virtual void GetPreferredSize(float*, float*);
virtual void Draw(BRect);
@@ -192,10 +191,10 @@ public:
void DrawDragRegion();
BRect DragRegion() const;
bool SwitchModeForRect(BPoint mouse, BRect rect,
bool SwitchModeForRect(BPoint mouse, BRect rect,
bool newVertical, bool newLeft, bool newTop, int32 newState);
int32 DragRegionLocation() const;
void SetDragRegionLocation(int32);