clean out unused functions

This commit is contained in:
Bill Currie 2007-10-08 09:50:02 +00:00 committed by Jeff Teunissen
parent e9340b07ee
commit 7c4a0725e1
7 changed files with 2 additions and 46 deletions

View file

@ -53,7 +53,6 @@ typedef struct {
} winding_t;
winding_t *BaseWindingForPlane (plane_t *p);
void CheckWinding (winding_t *w);
winding_t *NewWinding (int points);
void FreeWinding (winding_t *w);
winding_t *CopyWinding (winding_t *w);
@ -157,7 +156,6 @@ void SplitFace (face_t *in, plane_t *split, face_t **front, face_t **back);
void DivideFacet (face_t *in, plane_t *split, face_t **front, face_t **back);
void CalcSurfaceInfo (surface_t *surf);
void SubdivideFace (face_t *f, face_t **prevptr);
node_t *SolidBSP (surface_t *surfhead, qboolean midsplit);
// merge.c ====================================================================
@ -176,7 +174,7 @@ extern face_t *edgefaces[MAX_MAP_EDGES][2];
extern int firstmodeledge;
extern int firstmodelface;
void SubdivideFaces (surface_t *surfhead);
void SubdivideFace (face_t *f, face_t **prevptr);
surface_t *GatherNodeFaces (node_t *headnode);

View file

@ -65,7 +65,6 @@ int FindMiptex (const char *name);
void PrintEntity (entity_t *ent);
const char *ValueForKey (entity_t *ent, const char *key);
void SetKeyValue (entity_t *ent, const char *key, const char *value);
float FloatForKey (entity_t *ent, const char *key);
void GetVectorForKey (entity_t *ent, const char *key, vec3_t vec);
void WriteEntitiesToString (void);

View file

@ -57,6 +57,5 @@ typedef struct {
extern options_t options;
int DecodeArgs (int argc, char **argv);
void usage (int status);
extern const char *this_program;
#endif//__options_h

View file

@ -540,15 +540,6 @@ SetKeyValue (entity_t *ent, const char *key, const char *value)
ep->value = strdup (value);
}
float
FloatForKey (entity_t *ent, const char *key)
{
const char *k;
k = ValueForKey (ent, key);
return atof (k);
}
void
GetVectorForKey (entity_t *ent, const char *key, vec3_t vec)
{

View file

@ -88,7 +88,7 @@ static const char *short_options =
;
void
static void
usage (int status)
{
printf ("%s - QuakeForge PVS/PHS generation tool\n", this_program);

View file

@ -161,11 +161,6 @@ CopyWindingReverse (winding_t *w)
return c;
}
void
CheckWinding (winding_t * w)
{
}
/*
ClipWinding

View file

@ -105,32 +105,6 @@ SubdivideFace (face_t *f, face_t **prevptr)
}
}
void
SubdivideFaces (surface_t *surfhead)
{
face_t *f, **prevptr;
surface_t *surf;
qprintf ("--- SubdivideFaces ---\n");
subdivides = 0;
for (surf = surfhead; surf; surf = surf->next) {
prevptr = &surf->faces;
while (1) {
f = *prevptr;
if (!f)
break;
SubdivideFace (f, prevptr);
f = *prevptr;
prevptr = &f->next;
}
}
qprintf ("%i faces added by subdivision\n", subdivides);
}
/*
GatherNodeFaces