Remove unused Delay.c
Signed-off-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
parent
4fac13ff88
commit
9522ab9a98
|
@ -1,39 +0,0 @@
|
||||||
#ifdef HAVE_XORG_CONFIG_H
|
|
||||||
#include <xorg-config.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <X11/X.h>
|
|
||||||
#include "xf86.h"
|
|
||||||
#include "xf86Priv.h"
|
|
||||||
#include "xf86_OSlib.h"
|
|
||||||
|
|
||||||
#include <time.h>
|
|
||||||
|
|
||||||
void
|
|
||||||
xf86UDelay(long usec)
|
|
||||||
{
|
|
||||||
#if 0
|
|
||||||
struct timeval start, interrupt;
|
|
||||||
#else
|
|
||||||
int sigio;
|
|
||||||
|
|
||||||
sigio = xf86BlockSIGIO();
|
|
||||||
usleep(usec);
|
|
||||||
xf86UnblockSIGIO(sigio);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if 0
|
|
||||||
gettimeofday(&start,NULL);
|
|
||||||
|
|
||||||
do {
|
|
||||||
usleep(usec);
|
|
||||||
gettimeofday(&interrupt,NULL);
|
|
||||||
|
|
||||||
if ((usec = usec - (interrupt.tv_sec - start.tv_sec) * 1000000
|
|
||||||
- (interrupt.tv_usec - start.tv_usec)) < 0)
|
|
||||||
break;
|
|
||||||
start = interrupt;
|
|
||||||
} while (1);
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
|
|
||||||
noinst_LTLIBRARIES = libmisc.la
|
noinst_LTLIBRARIES = libmisc.la
|
||||||
|
|
||||||
libmisc_la_SOURCES = Delay.c SlowBcopy.c
|
libmisc_la_SOURCES = SlowBcopy.c
|
||||||
|
|
||||||
#AM_LDFLAGS = -r
|
#AM_LDFLAGS = -r
|
||||||
|
|
||||||
|
|
|
@ -143,7 +143,6 @@ extern _X_EXPORT void xf86SetTVOut(int);
|
||||||
extern _X_EXPORT void xf86SetRGBOut(void);
|
extern _X_EXPORT void xf86SetRGBOut(void);
|
||||||
#endif
|
#endif
|
||||||
extern _X_EXPORT void xf86OSRingBell(int, int, int);
|
extern _X_EXPORT void xf86OSRingBell(int, int, int);
|
||||||
extern _X_EXPORT void xf86UDelay(long usec);
|
|
||||||
extern _X_EXPORT void xf86SetReallySlowBcopy(void);
|
extern _X_EXPORT void xf86SetReallySlowBcopy(void);
|
||||||
extern _X_EXPORT void xf86SlowBcopy(unsigned char *, unsigned char *, int);
|
extern _X_EXPORT void xf86SlowBcopy(unsigned char *, unsigned char *, int);
|
||||||
extern _X_EXPORT int xf86OpenSerial(pointer options);
|
extern _X_EXPORT int xf86OpenSerial(pointer options);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user