From 0cf0f710b736729bc4a7e2e69dffbcbf5887815c Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Wed, 9 Jul 2003 15:34:58 +0000 Subject: [PATCH] remove some unneeded code --- libs/gamecode/builtins/bi_qfile.c | 14 -------------- libs/gamecode/builtins/bi_qfs.c | 14 -------------- libs/models/brush/model_brush.c | 4 ---- 3 files changed, 32 deletions(-) diff --git a/libs/gamecode/builtins/bi_qfile.c b/libs/gamecode/builtins/bi_qfile.c index 569a62be8..4624d33da 100644 --- a/libs/gamecode/builtins/bi_qfile.c +++ b/libs/gamecode/builtins/bi_qfile.c @@ -39,20 +39,6 @@ static __attribute__ ((unused)) const char rcsid[] = # include #endif -#ifdef HAVE_FNMATCH_H -# define model_t sunmodel_t -# include -# undef model_t -#else -# ifdef WIN32 -# include "fnmatch.h" -# endif -#endif - -#ifndef HAVE_FNMATCH_PROTO -int fnmatch (const char *__pattern, const char *__string, int __flags); -#endif - #include "QF/csqc.h" #include "QF/progs.h" #include "QF/quakefs.h" diff --git a/libs/gamecode/builtins/bi_qfs.c b/libs/gamecode/builtins/bi_qfs.c index b011de2f5..a50277a39 100644 --- a/libs/gamecode/builtins/bi_qfs.c +++ b/libs/gamecode/builtins/bi_qfs.c @@ -39,20 +39,6 @@ static __attribute__ ((unused)) const char rcsid[] = # include #endif -#ifdef HAVE_FNMATCH_H -# define model_t sunmodel_t -# include -# undef model_t -#else -# ifdef WIN32 -# include "fnmatch.h" -# endif -#endif - -#ifndef HAVE_FNMATCH_PROTO -int fnmatch (const char *__pattern, const char *__string, int __flags); -#endif - #include "QF/csqc.h" #include "QF/progs.h" #include "QF/quakefs.h" diff --git a/libs/models/brush/model_brush.c b/libs/models/brush/model_brush.c index 95a90f46a..87f4e01bf 100644 --- a/libs/models/brush/model_brush.c +++ b/libs/models/brush/model_brush.c @@ -91,9 +91,6 @@ Mod_DecompressVis (byte * in, model_t *model) row = (model->numleafs + 7) >> 3; out = decompressed; -#if 0 - memcpy (out, in, row); -#else if (!in) { // no vis info, so make all visible while (row) { *out++ = 0xff; @@ -115,7 +112,6 @@ Mod_DecompressVis (byte * in, model_t *model) c--; } } while (out - decompressed < row); -#endif return decompressed; }