Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
c5369f03
Commit
c5369f03
authored
Jan 09, 2016
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
misc: remove unused mstrtime()
parent
1fa9bf9a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
1 addition
and
26 deletions
+1
-26
include/vlc_mtime.h
include/vlc_mtime.h
+0
-1
src/check_symbols
src/check_symbols
+1
-1
src/libvlccore.sym
src/libvlccore.sym
+0
-1
src/misc/mtime.c
src/misc/mtime.c
+0
-23
No files found.
include/vlc_mtime.h
View file @
c5369f03
...
...
@@ -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
);
/*****************************************************************************
...
...
src/check_symbols
View file @
c5369f03
...
...
@@ -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
...
...
src/libvlccore.sym
View file @
c5369f03
...
...
@@ -272,7 +272,6 @@ vlc_vaLog
vlc_strerror
vlc_strerror_c
msleep
mstrtime
mwait
net_Accept
net_AcceptSingle
...
...
src/misc/mtime.c
View file @
c5369f03
...
...
@@ -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.
*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment