mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-17 22:50:51 +00:00
remove some unneeded code
This commit is contained in:
parent
855fc53709
commit
0cf0f710b7
3 changed files with 0 additions and 32 deletions
|
@ -39,20 +39,6 @@ static __attribute__ ((unused)) const char rcsid[] =
|
|||
# include <strings.h>
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_FNMATCH_H
|
||||
# define model_t sunmodel_t
|
||||
# include <fnmatch.h>
|
||||
# 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"
|
||||
|
|
|
@ -39,20 +39,6 @@ static __attribute__ ((unused)) const char rcsid[] =
|
|||
# include <strings.h>
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_FNMATCH_H
|
||||
# define model_t sunmodel_t
|
||||
# include <fnmatch.h>
|
||||
# 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"
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue