Commit 17c16623 authored by Duncan Coutts's avatar Duncan Coutts

Delete some old Win9x C code

parent f9c21573
......@@ -27,26 +27,6 @@ fileTimeToTicks(FILETIME ft)
return t;
}
static int is_win9x = -1;
static INLINE_ME rtsBool
isWin9x(void)
{
if (is_win9x < 0) {
/* figure out whether we're on a Win9x box or not. */
OSVERSIONINFO oi;
BOOL b;
/* Need to init the size field first.*/
oi.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
b = GetVersionEx(&oi);
is_win9x = ( (b && (oi.dwPlatformId & VER_PLATFORM_WIN32_WINDOWS)) ? 1 : 0);
}
return is_win9x;
}
void
getProcessTimes(Ticks *user, Ticks *elapsed)
{
......@@ -59,8 +39,6 @@ getProcessCPUTime(void)
{
FILETIME creationTime, exitTime, userTime, kernelTime = {0,0};
if (isWin9x()) return getProcessElapsedTime();
if (!GetProcessTimes(GetCurrentProcess(), &creationTime,
&exitTime, &kernelTime, &userTime)) {
return 0;
......@@ -106,8 +84,6 @@ getThreadCPUTime(void)
{
FILETIME creationTime, exitTime, userTime, kernelTime = {0,0};
if (isWin9x()) return getProcessCPUTime();
if (!GetThreadTimes(GetCurrentThread(), &creationTime,
&exitTime, &kernelTime, &userTime)) {
return 0;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment