Commit c5369f03 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

misc: remove unused mstrtime()

parent 1fa9bf9a
......@@ -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 );
/*****************************************************************************
......
......@@ -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
......
......@@ -272,7 +272,6 @@ vlc_vaLog
vlc_strerror
vlc_strerror_c
msleep
mstrtime
mwait
net_Accept
net_AcceptSingle
......
......@@ -46,29 +46,6 @@
# include <sys/time.h>
#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.
*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment