Remove unneeded code after Adrien's improvements.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@43193 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
a94afff898
commit
20cc8cc800
@ -73,8 +73,6 @@ DateTimeView::AttachedToWindow()
|
||||
|
||||
fCalendarView->SetTarget(this);
|
||||
}
|
||||
|
||||
_NotifyClockSettingChanged();
|
||||
}
|
||||
|
||||
|
||||
@ -235,11 +233,3 @@ DateTimeView::_UpdateDateTime(BMessage* message)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
DateTimeView::_NotifyClockSettingChanged()
|
||||
{
|
||||
BMessage msg(kMsgClockSettingChanged);
|
||||
Window()->PostMessage(&msg);
|
||||
}
|
||||
|
||||
|
@ -36,12 +36,10 @@ public:
|
||||
virtual void MessageReceived(BMessage* message);
|
||||
|
||||
bool CheckCanRevert();
|
||||
bool GetUseGmtTime();
|
||||
|
||||
private:
|
||||
void _InitView();
|
||||
void _UpdateDateTime(BMessage* message);
|
||||
void _NotifyClockSettingChanged();
|
||||
void _Revert();
|
||||
time_t _PrefletUptime() const;
|
||||
|
||||
|
@ -49,8 +49,5 @@ const uint32 kMsgChange = 'chng';
|
||||
// change time finished
|
||||
const uint32 kChangeTimeFinished = 'tcfi';
|
||||
|
||||
// GMT or localtime setting was changed
|
||||
const uint32 kMsgClockSettingChanged = 'tsch';
|
||||
|
||||
#endif // _TIME_MESSAGES_H
|
||||
|
||||
|
@ -92,9 +92,6 @@ TTimeWindow::MessageReceived(BMessage* message)
|
||||
_SetRevertStatus();
|
||||
break;
|
||||
|
||||
case kMsgClockSettingChanged:
|
||||
break;
|
||||
|
||||
default:
|
||||
BWindow::MessageReceived(message);
|
||||
break;
|
||||
|
@ -167,7 +167,6 @@ TimeZoneView::MessageReceived(BMessage* message)
|
||||
case H_SET_TIME_ZONE:
|
||||
{
|
||||
_SetSystemTimeZone();
|
||||
_NotifyClockSettingChanged();
|
||||
break;
|
||||
}
|
||||
|
||||
@ -634,7 +633,6 @@ TimeZoneView::_UpdateGmtSettings()
|
||||
_WriteRTCSettings();
|
||||
|
||||
_ShowOrHidePreview();
|
||||
_NotifyClockSettingChanged();
|
||||
|
||||
_kern_set_real_time_clock_is_gmt(fUseGmtTime);
|
||||
}
|
||||
@ -656,11 +654,3 @@ TimeZoneView::_ShowOrHidePreview()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
TimeZoneView::_NotifyClockSettingChanged()
|
||||
{
|
||||
BMessage msg(kMsgClockSettingChanged);
|
||||
Window()->PostMessage(&msg);
|
||||
}
|
||||
|
||||
|
@ -46,7 +46,6 @@ private:
|
||||
|
||||
void _UpdatePreview();
|
||||
void _UpdateCurrent();
|
||||
void _NotifyClockSettingChanged();
|
||||
BString _FormatTime(const BTimeZone& timeZone);
|
||||
|
||||
void _ReadRTCSettings();
|
||||
|
Loading…
Reference in New Issue
Block a user