Get rid of unnecessary wxUsecClockAsString() helper function.

We always build with wxUSE_LONGLONG now, so just use wxLongLong::ToString()
directly.

This avois a warning about unused local function in wxDEBUG_LEVEL==0 builds.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77478 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2014-08-24 15:32:19 +00:00
parent 73c319ccde
commit 6283e4e6f1

View File

@@ -44,20 +44,6 @@ WX_DEFINE_LIST(wxTimerList)
// trace mask for the debugging messages used here
#define wxTrace_Timer wxT("timer")
// ----------------------------------------------------------------------------
// local functions
// ----------------------------------------------------------------------------
// helper function to format wxUsecClock_t
static inline wxString wxUsecClockAsString(wxUsecClock_t usec)
{
#if wxUSE_LONGLONG
return usec.ToString();
#else // wxUsecClock_t == double
return wxString::Format(wxT("%.0f"), usec);
#endif
}
// ============================================================================
// wxTimerScheduler implementation
// ============================================================================
@@ -96,7 +82,7 @@ void wxTimerScheduler::DoAddTimer(wxTimerSchedule *s)
wxLogTrace(wxTrace_Timer, wxT("Inserted timer %d expiring at %s"),
s->m_timer->GetId(),
wxUsecClockAsString(s->m_expiration).c_str());
s->m_expiration.ToString());
}
void wxTimerScheduler::RemoveTimer(wxUnixTimerImpl *timer)