]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
removed unused packlist variable and pack->next field
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 17 Dec 2006 18:11:01 +0000 (18:11 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 17 Dec 2006 18:11:01 +0000 (18:11 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6655 d7cf8633-e32d-0410-b094-e92efae38249

fs.c

diff --git a/fs.c b/fs.c
index a2337b0e9836d20b7313671b0065f15080674881..211e582bacc5d1dfbd99dd0041c5d654a4c1047b 100644 (file)
--- 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++)