From 89bfac1f61e3d88054eadad7d573d591ec9ae6d7 Mon Sep 17 00:00:00 2001 From: havoc Date: Sun, 17 Dec 2006 18:11:01 +0000 Subject: [PATCH] removed unused packlist variable and pack->next field git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6655 d7cf8633-e32d-0410-b094-e92efae38249 --- fs.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/fs.c b/fs.c index a2337b0e..211e582b 100644 --- a/fs.c +++ b/fs.c @@ -225,7 +225,6 @@ typedef struct pack_s int ignorecase; // PK3 ignores case int numfiles; packfile_t *files; - struct pack_s *next; } pack_t; @@ -267,8 +266,6 @@ VARIABLES mempool_t *fs_mempool; -pack_t *packlist = NULL; - searchpath_t *fs_searchpaths = NULL; #define MAX_FILES_IN_PACK 65536 @@ -586,8 +583,6 @@ pack_t *FS_LoadPackPK3 (const char *packfile) pack->handle = packhandle; pack->numfiles = eocd.nbentries; pack->files = (packfile_t *)Mem_Alloc(fs_mempool, eocd.nbentries * sizeof(packfile_t)); - pack->next = packlist; - packlist = pack; real_nb_files = PK3_BuildFileList (pack, &eocd); if (real_nb_files < 0) @@ -807,8 +802,6 @@ pack_t *FS_LoadPackPAK (const char *packfile) pack->handle = packhandle; pack->numfiles = 0; pack->files = (packfile_t *)Mem_Alloc(fs_mempool, numpackfiles * sizeof(packfile_t)); - pack->next = packlist; - packlist = pack; // parse the directory for (i = 0;i < numpackfiles;i++) -- 2.39.2