PowerStatus: removed unused uninitialized variable.
* Might help with #11329; I can't test this right now.
This commit is contained in:
parent
5ac86f880d
commit
bf97f54d17
@ -52,17 +52,15 @@ const uint32 kMsgToggleExtInfo = 'texi';
|
||||
const uint32 kMinIconWidth = 16;
|
||||
const uint32 kMinIconHeight = 16;
|
||||
|
||||
|
||||
PowerStatusView::PowerStatusView(PowerStatusDriverInterface* interface,
|
||||
BRect frame, int32 resizingMode, int batteryID, bool inDeskbar)
|
||||
:
|
||||
BView(frame, kDeskbarItemName, resizingMode,
|
||||
: BView(frame, kDeskbarItemName, resizingMode,
|
||||
B_WILL_DRAW | B_FULL_UPDATE_ON_RESIZE),
|
||||
fDriverInterface(interface),
|
||||
fBatteryID(batteryID),
|
||||
fInDeskbar(inDeskbar)
|
||||
{
|
||||
fPreferredSize.width = frame.Width();
|
||||
fPreferredSize.height = frame.Height();
|
||||
_Init();
|
||||
}
|
||||
|
||||
@ -139,14 +137,6 @@ PowerStatusView::MessageReceived(BMessage *message)
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
PowerStatusView::GetPreferredSize(float *width, float *height)
|
||||
{
|
||||
*width = fPreferredSize.width;
|
||||
*height = fPreferredSize.height;
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
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.
|
||||
*
|
||||
* Authors:
|
||||
@ -34,7 +34,6 @@ public:
|
||||
|
||||
virtual void MessageReceived(BMessage* message);
|
||||
virtual void Draw(BRect updateRect);
|
||||
virtual void GetPreferredSize(float *width, float *height);
|
||||
|
||||
|
||||
protected:
|
||||
@ -67,8 +66,6 @@ protected:
|
||||
time_t fTimeLeft;
|
||||
bool fOnline;
|
||||
bool fHasBattery;
|
||||
|
||||
BSize fPreferredSize;
|
||||
};
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user