[vlc-commits] misc: remove unused mstrtime()

Rémi Denis-Courmont git at videolan.org
Sat Jan 9 14:37:40 CET 2016


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Jan  9 15:34:45 2016 +0200| [c5369f0319aa389791d4ba90242a486aad368c29] | committer: Rémi Denis-Courmont

misc: remove unused mstrtime()

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c5369f0319aa389791d4ba90242a486aad368c29
---

 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 ab89a97..311eb67 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 9f8320a..b0ba4e1 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 e1d6aba..0b93d8b 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 ea283f1..10782bc 100644
--- a/src/misc/mtime.c
+++ b/src/misc/mtime.c
@@ -47,29 +47,6 @@
 #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.
  *
  * This function is provided for any interface function which need to print a



More information about the vlc-commits mailing list