From 72b5fbe8930f0434d40e21353403464fb64b05a8 Mon Sep 17 00:00:00 2001 From: Tim Angus Date: Tue, 7 Oct 2025 22:13:30 +0100 Subject: [PATCH] Remove unused/outdated null_* files --- code/null/mac_net.c | 54 ----------------------------- code/null/null_glimp.c | 61 --------------------------------- code/null/null_main.c | 77 ------------------------------------------ code/null/null_net.c | 53 ----------------------------- 4 files changed, 245 deletions(-) delete mode 100644 code/null/mac_net.c delete mode 100644 code/null/null_glimp.c delete mode 100644 code/null/null_main.c delete mode 100644 code/null/null_net.c diff --git a/code/null/mac_net.c b/code/null/mac_net.c deleted file mode 100644 index d83d6d20..00000000 --- a/code/null/mac_net.c +++ /dev/null @@ -1,54 +0,0 @@ -/* -=========================================================================== -Copyright (C) 1999-2005 Id Software, Inc. - -This file is part of Quake III Arena source code. - -Quake III Arena source code 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. - -Quake III Arena source code 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 Quake III Arena source code; if not, write to the Free Software -Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -=========================================================================== -*/ - -#include "../qcommon/q_shared.h" -#include "../qcommon/qcommon.h" - -/* -============= -NET_StringToAdr - -localhost -idnewt -idnewt:28000 -192.246.40.70 -192.246.40.70:28000 -============= -*/ -qboolean NET_StringToAdr (char *s, netadr_t *a) -{ - if (!strcmp (s, "localhost")) { - memset (a, 0, sizeof(*a)); - a->type = NA_LOOPBACK; - return true; - } - - return false; -} - -/* -================== -Sys_SendPacket -================== -*/ -void Sys_SendPacket( int length, void *data, netadr_t to ) { -} diff --git a/code/null/null_glimp.c b/code/null/null_glimp.c deleted file mode 100644 index 558d2d12..00000000 --- a/code/null/null_glimp.c +++ /dev/null @@ -1,61 +0,0 @@ -/* -=========================================================================== -Copyright (C) 1999-2005 Id Software, Inc. - -This file is part of Quake III Arena source code. - -Quake III Arena source code 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. - -Quake III Arena source code 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 Quake III Arena source code; if not, write to the Free Software -Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -=========================================================================== -*/ -#include "../renderercommon/tr_common.h" - - -qboolean ( * qwglSwapIntervalEXT)( int interval ); -void ( * qglMultiTexCoord2fARB )( GLenum texture, float s, float t ); -void ( * qglActiveTextureARB )( GLenum texture ); -void ( * qglClientActiveTextureARB )( GLenum texture ); - - -void ( * qglLockArraysEXT)( int, int); -void ( * qglUnlockArraysEXT) ( void ); - - -void GLimp_EndFrame( void ) { -} - -void GLimp_Init( void ) { -} - -void GLimp_Shutdown( void ) { -} - -void GLimp_EnableLogging( qboolean enable ) { -} - -void GLimp_LogComment( char *comment ) { -} - -qboolean QGL_Init( const char *dllname ) { - return qtrue; -} - -void QGL_Shutdown( void ) { -} - -void GLimp_SetGamma( unsigned char red[256], unsigned char green[256], unsigned char blue[256] ) { -} - -void GLimp_Minimize( void ) { -} diff --git a/code/null/null_main.c b/code/null/null_main.c deleted file mode 100644 index 01c22bd2..00000000 --- a/code/null/null_main.c +++ /dev/null @@ -1,77 +0,0 @@ -/* -=========================================================================== -Copyright (C) 1999-2005 Id Software, Inc. - -This file is part of Quake III Arena source code. - -Quake III Arena source code 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. - -Quake III Arena source code 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 Quake III Arena source code; if not, write to the Free Software -Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -=========================================================================== -*/ -// null_main.c -- null system driver to aid porting efforts - -#include -#include -#include "../qcommon/qcommon.h" - -int sys_curtime; - - -//=================================================================== - - -void Sys_Error (char *error, ...) { - va_list argptr; - - printf ("Sys_Error: "); - va_start (argptr,error); - vprintf (error,argptr); - va_end (argptr); - printf ("\n"); - - exit (1); -} - -void Sys_Quit (void) { - exit (0); -} - -char *Sys_GetClipboardData( void ) { - return NULL; -} - -int Sys_Milliseconds (void) { - return 0; -} - -FILE *Sys_FOpen(const char *ospath, const char *mode) { - return fopen( ospath, mode ); -} - -void Sys_Mkdir (char *path) { -} - -void Sys_Init (void) { -} - - -void main (int argc, char **argv) { - Com_Init (argc, argv); - - while (1) { - Com_Frame( ); - } -} - - diff --git a/code/null/null_net.c b/code/null/null_net.c deleted file mode 100644 index 081f36ca..00000000 --- a/code/null/null_net.c +++ /dev/null @@ -1,53 +0,0 @@ -/* -=========================================================================== -Copyright (C) 1999-2005 Id Software, Inc. - -This file is part of Quake III Arena source code. - -Quake III Arena source code 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. - -Quake III Arena source code 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 Quake III Arena source code; if not, write to the Free Software -Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -=========================================================================== -*/ - -#include "../qcommon/qcommon.h" - -/* -============= -NET_StringToAdr - -localhost -idnewt -idnewt:28000 -192.246.40.70 -192.246.40.70:28000 -============= -*/ -qboolean NET_StringToAdr (char *s, netadr_t *a) -{ - if (!strcmp (s, "localhost")) { - memset (a, 0, sizeof(*a)); - a->type = NA_LOOPBACK; - return true; - } - - return false; -} - -/* -================== -Sys_SendPacket -================== -*/ -void Sys_SendPacket( int length, void *data, netadr_t to ) { -}