PowerStatus: removed unused uninitialized variable.
* Might help with #11329; I can't test this right now.
This commit is contained in:
@@ -52,17 +52,15 @@ const uint32 kMsgToggleExtInfo = 'texi';
|
|||||||
const uint32 kMinIconWidth = 16;
|
const uint32 kMinIconWidth = 16;
|
||||||
const uint32 kMinIconHeight = 16;
|
const uint32 kMinIconHeight = 16;
|
||||||
|
|
||||||
|
|
||||||
PowerStatusView::PowerStatusView(PowerStatusDriverInterface* interface,
|
PowerStatusView::PowerStatusView(PowerStatusDriverInterface* interface,
|
||||||
BRect frame, int32 resizingMode, int batteryID, bool inDeskbar)
|
BRect frame, int32 resizingMode, int batteryID, bool inDeskbar)
|
||||||
:
|
: BView(frame, kDeskbarItemName, resizingMode,
|
||||||
BView(frame, kDeskbarItemName, resizingMode,
|
|
||||||
B_WILL_DRAW | B_FULL_UPDATE_ON_RESIZE),
|
B_WILL_DRAW | B_FULL_UPDATE_ON_RESIZE),
|
||||||
fDriverInterface(interface),
|
fDriverInterface(interface),
|
||||||
fBatteryID(batteryID),
|
fBatteryID(batteryID),
|
||||||
fInDeskbar(inDeskbar)
|
fInDeskbar(inDeskbar)
|
||||||
{
|
{
|
||||||
fPreferredSize.width = frame.Width();
|
|
||||||
fPreferredSize.height = frame.Height();
|
|
||||||
_Init();
|
_Init();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -139,14 +137,6 @@ PowerStatusView::MessageReceived(BMessage *message)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void
|
|
||||||
PowerStatusView::GetPreferredSize(float *width, float *height)
|
|
||||||
{
|
|
||||||
*width = fPreferredSize.width;
|
|
||||||
*height = fPreferredSize.height;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
PowerStatusView::_DrawBattery(BRect rect)
|
PowerStatusView::_DrawBattery(BRect rect)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2006-2009, Haiku, Inc. All Rights Reserved.
|
* Copyright 2006-2014, Haiku, Inc. All Rights Reserved.
|
||||||
* Distributed under the terms of the MIT License.
|
* Distributed under the terms of the MIT License.
|
||||||
*
|
*
|
||||||
* Authors:
|
* Authors:
|
||||||
@@ -34,7 +34,6 @@ public:
|
|||||||
|
|
||||||
virtual void MessageReceived(BMessage* message);
|
virtual void MessageReceived(BMessage* message);
|
||||||
virtual void Draw(BRect updateRect);
|
virtual void Draw(BRect updateRect);
|
||||||
virtual void GetPreferredSize(float *width, float *height);
|
|
||||||
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
@@ -67,8 +66,6 @@ protected:
|
|||||||
time_t fTimeLeft;
|
time_t fTimeLeft;
|
||||||
bool fOnline;
|
bool fOnline;
|
||||||
bool fHasBattery;
|
bool fHasBattery;
|
||||||
|
|
||||||
BSize fPreferredSize;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user