summaryrefslogtreecommitdiffstats
path: root/osdep
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2012-08-31 18:17:45 +0200
committerwm4 <wm4@nowhere>2012-09-07 16:06:36 +0200
commitc5e2120e15d3b6e6e896a48670376de985fcc712 (patch)
tree3cacbce971cf6d84c766357fc66b24253533d3a5 /osdep
parent914c8dc577ef782d8e350d9a5d68657108d04c19 (diff)
downloadmpv-c5e2120e15d3b6e6e896a48670376de985fcc712.tar.bz2
mpv-c5e2120e15d3b6e6e896a48670376de985fcc712.tar.xz
timer: remove timer_name
This was unreferenced and useless.
Diffstat (limited to 'osdep')
-rw-r--r--osdep/timer-darwin.c3
-rw-r--r--osdep/timer-linux.c7
-rw-r--r--osdep/timer-win2.c2
-rw-r--r--osdep/timer.h2
4 files changed, 0 insertions, 14 deletions
diff --git a/osdep/timer-darwin.c b/osdep/timer-darwin.c
index 19fcdd946a..13dcb104b7 100644
--- a/osdep/timer-darwin.c
+++ b/osdep/timer-darwin.c
@@ -30,9 +30,6 @@
/* global variables */
static double timebase_ratio;
-const char timer_name[] = "Darwin accurate";
-
-
/* the core sleep function, uses floats and is used in MPlayer G2 */
static float sleep_accurate(float time_frame)
diff --git a/osdep/timer-linux.c b/osdep/timer-linux.c
index 4ef28a499d..63f7ad913f 100644
--- a/osdep/timer-linux.c
+++ b/osdep/timer-linux.c
@@ -26,13 +26,6 @@
#include "config.h"
#include "timer.h"
-const char timer_name[] =
-#ifdef HAVE_NANOSLEEP
- "nanosleep()";
-#else
- "usleep()";
-#endif
-
int usec_sleep(int usec_delay)
{
#ifdef HAVE_NANOSLEEP
diff --git a/osdep/timer-win2.c b/osdep/timer-win2.c
index ac8eaa1bd6..88a047410d 100644
--- a/osdep/timer-win2.c
+++ b/osdep/timer-win2.c
@@ -22,8 +22,6 @@
#include <mmsystem.h>
#include "timer.h"
-const char timer_name[] = "Windows native";
-
// Returns current time in microseconds
unsigned int GetTimer(void)
{
diff --git a/osdep/timer.h b/osdep/timer.h
index c3925041ca..fe04663781 100644
--- a/osdep/timer.h
+++ b/osdep/timer.h
@@ -19,8 +19,6 @@
#ifndef MPLAYER_TIMER_H
#define MPLAYER_TIMER_H
-extern const char timer_name[];
-
void InitTimer(void);
unsigned int GetTimer(void);
unsigned int GetTimerMS(void);