From a0803ff6a252ea8000403bbab5e57e8f1c7b18f0 Mon Sep 17 00:00:00 2001 From: Eric Wasylishen Date: Fri, 15 May 2015 17:43:14 -0600 Subject: [PATCH] Remove some dead code --- light/light.c | 3 --- light/ltface.c | 5 +---- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/light/light.c b/light/light.c index 2ac35e62..8ad9db4c 100644 --- a/light/light.c +++ b/light/light.c @@ -132,7 +132,6 @@ FindModelInfo(const bsp2_t *bsp, const char *lmscaleoverride) const char *attribute; const dmodel_t **shadowmodels; modelinfo_t *info; - float lightmapscale; shadowmodels = malloc(sizeof(dmodel_t *) * (bsp->nummodels + 1)); memset(shadowmodels, 0, sizeof(dmodel_t *) * (bsp->nummodels + 1)); @@ -467,8 +466,6 @@ main(int argc, const char **argv) if (dirty) SetupDirt(); - CheckFenceTextures(bsp); - MakeTnodes(bsp); modelinfo = malloc(bsp->nummodels * sizeof(*modelinfo)); FindModelInfo(bsp, lmscaleoverride); diff --git a/light/ltface.c b/light/ltface.c index 3b0b86bb..db4f1326 100644 --- a/light/ltface.c +++ b/light/ltface.c @@ -20,8 +20,6 @@ #include #include -static const vec3_t bsp_origin = { 0, 0, 0 }; - /* ======================================================================== */ typedef struct { @@ -531,7 +529,7 @@ Lightsurf_Init(const modelinfo_t *modelinfo, const bsp2_dface_t *face, const texinfo_t *tex; vec3_t planepoint; texorg_t texorg; - int facenum, lmshift; + int facenum; /*FIXME: memset can be slow on large datasets*/ // memset(lightsurf, 0, sizeof(*lightsurf)); @@ -985,7 +983,6 @@ LightFace_Entity(const entity_t *entity, const lightsample_t *light, if (entity->projectedmip) { vec3_t col; - float s, t; VectorCopy(light->color, col); VectorScale(ray, 255, col); LightFace_SampleMipTex(entity->projectedmip, entity->projectionmatrix, surfpoint, col);