diff --git a/src/unix/timerunx.cpp b/src/unix/timerunx.cpp index 04e0fef019..9c98301770 100644 --- a/src/unix/timerunx.cpp +++ b/src/unix/timerunx.cpp @@ -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)