mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-18 06:51:47 +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>
|
# include <strings.h>
|
||||||
#endif
|
#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/csqc.h"
|
||||||
#include "QF/progs.h"
|
#include "QF/progs.h"
|
||||||
#include "QF/quakefs.h"
|
#include "QF/quakefs.h"
|
||||||
|
|
|
@ -39,20 +39,6 @@ static __attribute__ ((unused)) const char rcsid[] =
|
||||||
# include <strings.h>
|
# include <strings.h>
|
||||||
#endif
|
#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/csqc.h"
|
||||||
#include "QF/progs.h"
|
#include "QF/progs.h"
|
||||||
#include "QF/quakefs.h"
|
#include "QF/quakefs.h"
|
||||||
|
|
|
@ -91,9 +91,6 @@ Mod_DecompressVis (byte * in, model_t *model)
|
||||||
row = (model->numleafs + 7) >> 3;
|
row = (model->numleafs + 7) >> 3;
|
||||||
out = decompressed;
|
out = decompressed;
|
||||||
|
|
||||||
#if 0
|
|
||||||
memcpy (out, in, row);
|
|
||||||
#else
|
|
||||||
if (!in) { // no vis info, so make all visible
|
if (!in) { // no vis info, so make all visible
|
||||||
while (row) {
|
while (row) {
|
||||||
*out++ = 0xff;
|
*out++ = 0xff;
|
||||||
|
@ -115,7 +112,6 @@ Mod_DecompressVis (byte * in, model_t *model)
|
||||||
c--;
|
c--;
|
||||||
}
|
}
|
||||||
} while (out - decompressed < row);
|
} while (out - decompressed < row);
|
||||||
#endif
|
|
||||||
|
|
||||||
return decompressed;
|
return decompressed;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue