From d478e6b1d9c9ca1232cee07afa9ac2ba09579dca Mon Sep 17 00:00:00 2001
From: Joseph Carter <knghtbrd@debian.org>
Date: Sun, 1 Jul 2001 00:14:46 +0000
Subject: [PATCH] These aren't used anymore as their functions have moved to
 libs/util

---
 qw/source/sys_null.c | 173 -------------------------------------------
 qw/source/sys_unix.c | 151 -------------------------------------
 qw/source/sys_win.c  | 139 ----------------------------------
 3 files changed, 463 deletions(-)
 delete mode 100644 qw/source/sys_null.c
 delete mode 100644 qw/source/sys_unix.c
 delete mode 100644 qw/source/sys_win.c

diff --git a/qw/source/sys_null.c b/qw/source/sys_null.c
deleted file mode 100644
index ca4be0ce2..000000000
--- a/qw/source/sys_null.c
+++ /dev/null
@@ -1,173 +0,0 @@
-/*
-	sys_null.c
-
-	null system driver to aid porting efforts
-
-	Copyright (C) 1996-1997  Id Software, Inc.
-
-	This program is free software; you can redistribute it and/or
-	modify it under the terms of the GNU General Public License
-	as published by the Free Software Foundation; either version 2
-	of the License, or (at your option) any later version.
-
-	This program is distributed in the hope that it will be useful,
-	but WITHOUT ANY WARRANTY; without even the implied warranty of
-	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-
-	See the GNU General Public License for more details.
-
-	You should have received a copy of the GNU General Public License
-	along with this program; if not, write to:
-
-		Free Software Foundation, Inc.
-		59 Temple Place - Suite 330
-		Boston, MA  02111-1307, USA
-
-	$Id$
-*/
-
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
-
-#include <errno.h>
-
-
-/*
-	filelength
-*/
-int
-filelength (VFile *f)
-{
-	int         pos;
-	int         end;
-
-	pos = Qtell (f);
-	Qseek (f, 0, SEEK_END);
-	end = Qtell (f);
-	Qseek (f, pos, SEEK_SET);
-
-	return end;
-}
-
-
-int
-Sys_FileTime (char *path)
-{
-	VFile      *f;
-
-	f = Qopen (path, "rb");
-	if (f) {
-		Qclose (f);
-		return 1;
-	}
-
-	return -1;
-}
-
-void
-Sys_mkdir (char *path)
-{
-}
-
-
-/*
-	SYSTEM IO
-*/
-
-void
-Sys_MakeCodeWriteable (unsigned long startaddr, unsigned long length)
-{
-}
-
-
-void
-Sys_DebugLog (char *file, char *fmt, ...)
-{
-}
-
-void
-Sys_Error (char *error, ...)
-{
-	va_list     argptr;
-
-	printf ("I_Error: ");
-	va_start (argptr, error);
-	vprintf (error, argptr);
-	va_end (argptr);
-	printf ("\n");
-
-	exit (1);
-}
-
-void
-Sys_Printf (char *fmt, ...)
-{
-	va_list     argptr;
-
-	va_start (argptr, fmt);
-	vprintf (fmt, argptr);
-	va_end (argptr);
-}
-
-void
-Sys_Quit (void)
-{
-	exit (0);
-}
-
-double
-Sys_FloatTime (void)
-{
-	static double t;
-
-	t += 0.1;
-
-	return t;
-}
-
-char       *
-Sys_ConsoleInput (void)
-{
-	return NULL;
-}
-
-void
-Sys_Sleep (void)
-{
-}
-
-void
-IN_SendKeyEvents (void)
-{
-}
-
-void
-Sys_HighFPPrecision (void)
-{
-}
-
-void
-Sys_LowFPPrecision (void)
-{
-}
-
-//=============================================================================
-
-void
-main (int argc, char **argv)
-{
-	host_parms.memsize = 5861376;
-	host_parms.membase = malloc (host_parms.memsize);
-
-	COM_InitArgv (argc, argv);
-
-	host_parms.argc = com_argc;
-	host_parms.argv = com_argv;
-
-	printf ("Host_Init\n");
-	Host_Init ();
-	while (1) {
-		Host_Frame (0.1);
-	}
-}
diff --git a/qw/source/sys_unix.c b/qw/source/sys_unix.c
deleted file mode 100644
index b4ac3c68f..000000000
--- a/qw/source/sys_unix.c
+++ /dev/null
@@ -1,151 +0,0 @@
-/*
-	sys_unix.c
-
-	(description)
-
-	Copyright (C) 1996-1997  Id Software, Inc.
-	Copyright (C) 2000       Marcus Sundberg [mackan@stacken.kth.se]
-
-	This program is free software; you can redistribute it and/or
-	modify it under the terms of the GNU General Public License
-	as published by the Free Software Foundation; either version 2
-	of the License, or (at your option) any later version.
-
-	This program is distributed in the hope that it will be useful,
-	but WITHOUT ANY WARRANTY; without even the implied warranty of
-	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-
-	See the GNU General Public License for more details.
-
-	You should have received a copy of the GNU General Public License
-	along with this program; if not, write to:
-
-		Free Software Foundation, Inc.
-		59 Temple Place - Suite 330
-		Boston, MA  02111-1307, USA
-
-	$Id$
-*/
-
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
-
-#include <stdio.h>
-#include <stdarg.h>
-#include <stdlib.h>
-#include <errno.h>
-#include <unistd.h>
-#include <sys/stat.h>
-#include <sys/time.h>
-#ifdef HAVE_STRING_H
-#include <string.h>
-#endif
-#ifdef HAVE_STRINGS_H
-#include <strings.h>
-#endif
-
-#include "QF/cvar.h"
-#include "host.h"
-#include "QF/qargs.h"
-#include "server.h"
-#include "QF/sys.h"
-
-cvar_t     *sys_nostdout;
-
-/* The translation table between the graphical font and plain ASCII  --KB */
-static char qfont_table[256] = {
-	'\0', '#', '#', '#', '#', '.', '#', '#',
-	'#', 9, 10, '#', ' ', 13, '.', '.',
-	'[', ']', '0', '1', '2', '3', '4', '5',
-	'6', '7', '8', '9', '.', '<', '=', '>',
-	' ', '!', '"', '#', '$', '%', '&', '\'',
-	'(', ')', '*', '+', ',', '-', '.', '/',
-	'0', '1', '2', '3', '4', '5', '6', '7',
-	'8', '9', ':', ';', '<', '=', '>', '?',
-	'@', 'A', 'B', 'C', 'D', 'E', 'F', 'G',
-	'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O',
-	'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W',
-	'X', 'Y', 'Z', '[', '\\', ']', '^', '_',
-	'`', 'a', 'b', 'c', 'd', 'e', 'f', 'g',
-	'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o',
-	'p', 'q', 'r', 's', 't', 'u', 'v', 'w',
-	'x', 'y', 'z', '{', '|', '}', '~', '<',
-
-	'<', '=', '>', '#', '#', '.', '#', '#',
-	'#', '#', ' ', '#', ' ', '>', '.', '.',
-	'[', ']', '0', '1', '2', '3', '4', '5',
-	'6', '7', '8', '9', '.', '<', '=', '>',
-	' ', '!', '"', '#', '$', '%', '&', '\'',
-	'(', ')', '*', '+', ',', '-', '.', '/',
-	'0', '1', '2', '3', '4', '5', '6', '7',
-	'8', '9', ':', ';', '<', '=', '>', '?',
-	'@', 'A', 'B', 'C', 'D', 'E', 'F', 'G',
-	'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O',
-	'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W',
-	'X', 'Y', 'Z', '[', '\\', ']', '^', '_',
-	'`', 'a', 'b', 'c', 'd', 'e', 'f', 'g',
-	'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o',
-	'p', 'q', 'r', 's', 't', 'u', 'v', 'w',
-	'x', 'y', 'z', '{', '|', '}', '~', '<'
-};
-
-#define MAXPRINTMSG 4096
-/*
-	Sys_Printf
-*/
-void
-Sys_Printf (char *fmt, ...)
-{
-	va_list     argptr;
-	char        msg[MAXPRINTMSG];
-
-	unsigned char *p;
-
-	if (sys_nostdout && sys_nostdout->int_val)
-		return;
-
-	va_start (argptr, fmt);
-	vsnprintf (msg, sizeof (msg), fmt, argptr);
-	va_end (argptr);
-
-	/* translate to ASCII instead of printing [xx]  --KB */
-	for (p = (unsigned char *) msg; *p; p++)
-		putc (qfont_table[*p], stdout);
-
-	fflush (stdout);
-}
-
-
-/*
-	Sys_mkdir
-*/
-void
-Sys_mkdir (char *path)
-{
-	if (mkdir (path, 0777) == 0)
-		return;
-	if (errno != EEXIST)
-		Sys_Error ("mkdir %s: %s", path, strerror (errno));
-}
-
-
-/*
-	Sys_DoubleTime
-*/
-double
-Sys_DoubleTime (void)
-{
-	struct timeval tp;
-	struct timezone tzp;
-	static int  secbase;
-
-	gettimeofday (&tp, &tzp);
-
-	if (!secbase) {
-		secbase = tp.tv_sec;
-		return tp.tv_usec / 1000000.0;
-	}
-
-	return (tp.tv_sec - secbase) + tp.tv_usec / 1000000.0;
-}
diff --git a/qw/source/sys_win.c b/qw/source/sys_win.c
deleted file mode 100644
index d74afba1e..000000000
--- a/qw/source/sys_win.c
+++ /dev/null
@@ -1,139 +0,0 @@
-/*
-	sys_win.c
-
-	(description)
-
-	Copyright (C) 1996-1997  Id Software, Inc.
-
-	This program is free software; you can redistribute it and/or
-	modify it under the terms of the GNU General Public License
-	as published by the Free Software Foundation; either version 2
-	of the License, or (at your option) any later version.
-
-	This program is distributed in the hope that it will be useful,
-	but WITHOUT ANY WARRANTY; without even the implied warranty of
-	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-
-	See the GNU General Public License for more details.
-
-	You should have received a copy of the GNU General Public License
-	along with this program; if not, write to:
-
-		Free Software Foundation, Inc.
-		59 Temple Place - Suite 330
-		Boston, MA  02111-1307, USA
-
-	$Id$
-*/
-
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
-
-#include <limits.h>
-#include <direct.h>
-#include <windows.h>
-
-#include "compat.h"
-#include "server.h"
-
-cvar_t     *sys_nostdout;
-
-/* The translation table between the graphical font and plain ASCII  --KB */
-static char qfont_table[256] = {
-	'\0', '#', '#', '#', '#', '.', '#', '#',
-	'#', 9, 10, '#', ' ', 13, '.', '.',
-	'[', ']', '0', '1', '2', '3', '4', '5',
-	'6', '7', '8', '9', '.', '<', '=', '>',
-	' ', '!', '"', '#', '$', '%', '&', '\'',
-	'(', ')', '*', '+', ',', '-', '.', '/',
-	'0', '1', '2', '3', '4', '5', '6', '7',
-	'8', '9', ':', ';', '<', '=', '>', '?',
-	'@', 'A', 'B', 'C', 'D', 'E', 'F', 'G',
-	'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O',
-	'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W',
-	'X', 'Y', 'Z', '[', '\\', ']', '^', '_',
-	'`', 'a', 'b', 'c', 'd', 'e', 'f', 'g',
-	'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o',
-	'p', 'q', 'r', 's', 't', 'u', 'v', 'w',
-	'x', 'y', 'z', '{', '|', '}', '~', '<',
-
-	'<', '=', '>', '#', '#', '.', '#', '#',
-	'#', '#', ' ', '#', ' ', '>', '.', '.',
-	'[', ']', '0', '1', '2', '3', '4', '5',
-	'6', '7', '8', '9', '.', '<', '=', '>',
-	' ', '!', '"', '#', '$', '%', '&', '\'',
-	'(', ')', '*', '+', ',', '-', '.', '/',
-	'0', '1', '2', '3', '4', '5', '6', '7',
-	'8', '9', ':', ';', '<', '=', '>', '?',
-	'@', 'A', 'B', 'C', 'D', 'E', 'F', 'G',
-	'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O',
-	'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W',
-	'X', 'Y', 'Z', '[', '\\', ']', '^', '_',
-	'`', 'a', 'b', 'c', 'd', 'e', 'f', 'g',
-	'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o',
-	'p', 'q', 'r', 's', 't', 'u', 'v', 'w',
-	'x', 'y', 'z', '{', '|', '}', '~', '<'
-};
-
-/*
-	Sys_DoubleTime
-*/
-double
-Sys_DoubleTime (void)
-{
-	static DWORD starttime;
-	static qboolean first = true;
-	DWORD       now;
-
-	now = timeGetTime ();
-
-	if (first) {
-		first = false;
-		starttime = now;
-		return 0.0;
-	}
-
-	if (now < starttime)				// wrapped?
-		return (now / 1000.0) + (LONG_MAX - starttime / 1000.0);
-
-	if (now - starttime == 0)
-		return 0.0;
-
-	return (now - starttime) / 1000.0;
-}
-
-#define MAXPRINTMSG 4096
-/*
-	Sys_Printf
-*/
-void
-Sys_Printf (char *fmt, ...)
-{
-	va_list     argptr;
-	char        msg[MAXPRINTMSG];
-
-	unsigned char *p;
-
-	if (sys_nostdout && sys_nostdout->int_val)
-		return;
-
-	va_start (argptr, fmt);
-	vsnprintf (msg, sizeof (msg), fmt, argptr);
-	va_end (argptr);
-
-	/* translate to ASCII instead of printing [xx]  --KB */
-	for (p = (unsigned char *) msg; *p; p++)
-		putc (qfont_table[*p], stdout);
-
-	fflush (stdout);
-}
-
-/*
-	Sys_mkdir
-*/
-void
-Sys_mkdir (char *path)
-{
-	_mkdir (path);
-}