]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - common.c
major cleanup of input code - CL_Move replaces most of IN_Move, IN_Commands, many...
[xonotic/darkplaces.git] / common.c
index 572c2b11364974ba0e7b3ad472f7317f99ee9ef6..f568a828ea60f9812b2170a0a2d51f0dd389701f 100644 (file)
--- a/common.c
+++ b/common.c
@@ -491,25 +491,6 @@ float MSG_ReadAngle (int protocol)
 
 //===========================================================================
 
-void SZ_Alloc (sizebuf_t *buf, int startsize, const char *name)
-{
-       if (startsize < 256)
-               startsize = 256;
-       buf->mempool = Mem_AllocPool(name, 0, NULL);
-       buf->data = Mem_Alloc(buf->mempool, startsize);
-       buf->maxsize = startsize;
-       buf->cursize = 0;
-}
-
-
-void SZ_Free (sizebuf_t *buf)
-{
-       Mem_FreePool(&buf->mempool);
-       buf->data = NULL;
-       buf->maxsize = 0;
-       buf->cursize = 0;
-}
-
 void SZ_Clear (sizebuf_t *buf)
 {
        buf->cursize = 0;
@@ -1020,35 +1001,15 @@ void COM_InitGameType (void)
 }
 
 
-extern void Mathlib_Init(void);
-extern void FS_Init (void);
-
 /*
 ================
 COM_Init
 ================
 */
-void COM_Init (void)
+void COM_Init_Commands (void)
 {
        Cvar_RegisterVariable (&registered);
        Cvar_RegisterVariable (&cmdline);
-
-       Mathlib_Init();
-
-       FS_Init ();
-       COM_CheckRegistered ();
-}
-
-extern void FS_Shutdown (void);
-
-/*
-================
-COM_Shutdown
-================
-*/
-void COM_Shutdown (void)
-{
-       FS_Shutdown ();
 }
 
 /*