From e33e420ef3e5139015504ef49215721e99850f2b Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Fri, 22 May 2020 18:28:38 +0200 Subject: cleanup: remove unused libc-structures from get_trip_date_string() This must be an artifact from before using Qt's datetime functions. Signed-off-by: Berthold Stoeger --- core/qthelper.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'core') diff --git a/core/qthelper.cpp b/core/qthelper.cpp index 561dd9213..3b87a33a7 100644 --- a/core/qthelper.cpp +++ b/core/qthelper.cpp @@ -989,8 +989,6 @@ extern "C" char *get_current_date() QString get_trip_date_string(timestamp_t when, int nr, bool getday) { - struct tm tm; - utc_mkdate(when, &tm); QDateTime localTime = timestampToDateTime(when); QString suffix = " " + gettextFromC::tr("(%n dive(s))", "", nr); -- cgit v1.2.3-70-g09d2