From 6283e4e6f160a8c083256fd716fad3936e225f4d Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 24 Aug 2014 15:32:19 +0000 Subject: [PATCH] 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 --- src/unix/timerunx.cpp | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) 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)