From c5369f0319aa389791d4ba90242a486aad368c29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Denis-Courmont?= Date: Sat, 9 Jan 2016 15:34:45 +0200 Subject: [PATCH] misc: remove unused mstrtime() --- include/vlc_mtime.h | 1 - src/check_symbols | 2 +- src/libvlccore.sym | 1 - src/misc/mtime.c | 23 ----------------------- 4 files changed, 1 insertion(+), 26 deletions(-) diff --git a/include/vlc_mtime.h b/include/vlc_mtime.h index ab89a97212..311eb670eb 100644 --- a/include/vlc_mtime.h +++ b/include/vlc_mtime.h @@ -54,7 +54,6 @@ /***************************************************************************** * Prototypes *****************************************************************************/ -VLC_API char * mstrtime( char *psz_buffer, mtime_t date ); VLC_API char * secstotimestr( char *psz_buffer, int32_t secs ); /***************************************************************************** diff --git a/src/check_symbols b/src/check_symbols index 9f8320acc6..b0ba4e1a57 100755 --- a/src/check_symbols +++ b/src/check_symbols @@ -21,7 +21,7 @@ cat libvlccore.sym | grep -v \ -e '^config_' -e '^module_' -e '^var_' \ -e '^date_' -e '^sdp_' -e '^plane_' \ -e '^us_' -e '^utf8_' -e '^xml_' -e '^str_format_' -e '^GetLang_' \ - -e '^m[a-z]*$' -e '^[A-Z][a-z]*Charset$' -e 'MD5$' \ + -e '^m\(date\|sleep\|wait\)$' -e '^[A-Z][a-z]*Charset$' -e 'MD5$' \ -e '^NTPtime64$' -e '^secstotimestr$' \ && exit 1 diff --git a/src/libvlccore.sym b/src/libvlccore.sym index e1d6aba491..0b93d8b42a 100644 --- a/src/libvlccore.sym +++ b/src/libvlccore.sym @@ -272,7 +272,6 @@ vlc_vaLog vlc_strerror vlc_strerror_c msleep -mstrtime mwait net_Accept net_AcceptSingle diff --git a/src/misc/mtime.c b/src/misc/mtime.c index ea283f1235..10782bc0ce 100644 --- a/src/misc/mtime.c +++ b/src/misc/mtime.c @@ -46,29 +46,6 @@ # include #endif -/** - * Return a date in a readable format - * - * This function converts a mtime date into a string. - * psz_buffer should be a buffer long enough to store the formatted - * date. - * \param date to be converted - * \param psz_buffer should be a buffer at least MSTRTIME_MAX_SIZE characters - * \return psz_buffer is returned so this can be used as printf parameter. - */ -char *mstrtime( char *psz_buffer, mtime_t date ) -{ - static const mtime_t ll1000 = 1000, ll60 = 60, ll24 = 24; - - snprintf( psz_buffer, MSTRTIME_MAX_SIZE, "%02d:%02d:%02d-%03d.%03d", - (int) (date / (ll1000 * ll1000 * ll60 * ll60) % ll24), - (int) (date / (ll1000 * ll1000 * ll60) % ll60), - (int) (date / (ll1000 * ll1000) % ll60), - (int) (date / ll1000 % ll1000), - (int) (date % ll1000) ); - return( psz_buffer ); -} - /** * Convert seconds to a time in the format h:mm:ss. * -- GitLab