Francois Gouget : winedos: DOSVM_GetTimer() is not used so remove it.

Alexandre Julliard julliard at winehq.org
Mon Jun 15 07:59:07 CDT 2009


Module: wine
Branch: master
Commit: 8396dad5c2f4cbeed23ef9d1f6886e603b7d8c9d
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=8396dad5c2f4cbeed23ef9d1f6886e603b7d8c9d

Author: Francois Gouget <fgouget at free.fr>
Date:   Mon Jun 15 10:52:36 2009 +0200

winedos: DOSVM_GetTimer() is not used so remove it.

---

 dlls/winedos/dosexe.h |    1 -
 dlls/winedos/timer.c  |   21 ---------------------
 2 files changed, 0 insertions(+), 22 deletions(-)

diff --git a/dlls/winedos/dosexe.h b/dlls/winedos/dosexe.h
index 11e92e2..a1be04a 100644
--- a/dlls/winedos/dosexe.h
+++ b/dlls/winedos/dosexe.h
@@ -363,7 +363,6 @@ extern DWORD WINAPI DOSVM_Loop( HANDLE hThread );
 extern void WINAPI DOSVM_QueueEvent( INT irq, INT priority, DOSRELAY relay, LPVOID data );
 extern void WINAPI DOSVM_PIC_ioport_out( WORD port, BYTE val );
 extern void WINAPI DOSVM_SetTimer( UINT ticks );
-extern UINT WINAPI DOSVM_GetTimer( void );
 
 /* devices.c */
 extern void DOSDEV_InstallDOSDevices(void);
diff --git a/dlls/winedos/timer.c b/dlls/winedos/timer.c
index 0a504af..a7067aa 100644
--- a/dlls/winedos/timer.c
+++ b/dlls/winedos/timer.c
@@ -142,27 +142,6 @@ static void WINAPI TIMER_DoSetTimer( ULONG_PTR arg )
 
 
 /***********************************************************************
- *              DOSVM_GetTimer
- */
-UINT WINAPI DOSVM_GetTimer( void )
-{
-    if (!DOSVM_IsWin16())
-    {
-        DWORD millis = GetTickCount() - TIMER_stamp;
-        INT   ticks = MulDiv( millis, TIMER_FREQ, 1000 );
-
-        /* sanity check - tick wrap or suspended process or update race */
-        if (ticks < 0 || ticks >= TIMER_ticks)
-            ticks = 0;
-
-        return ticks;
-    }
-
-    return 0;
-}
-
-
-/***********************************************************************
  *              DOSVM_SetTimer
  */
 void WINAPI DOSVM_SetTimer( UINT ticks )




More information about the wine-cvs mailing list