From 8b1e1e016476bc7e35344bac4eb16ed7a73a632b Mon Sep 17 00:00:00 2001 From: Eric Wasylishen Date: Tue, 26 Jul 2016 16:41:27 -0600 Subject: [PATCH] light: entities: delete some dead code --- include/light/entities.hh | 6 ------ light/entities.cc | 13 ------------- 2 files changed, 19 deletions(-) diff --git a/include/light/entities.hh b/include/light/entities.hh index 9a106169..5dfa3414 100644 --- a/include/light/entities.hh +++ b/include/light/entities.hh @@ -67,8 +67,6 @@ public: const bsp2_dleaf_t *leaf; // for vis testing - entity_t *next; - const char *classname() const; public: @@ -99,7 +97,6 @@ public: targetent {nullptr}, generated {false}, leaf {nullptr}, - next {nullptr}, // settings @@ -145,9 +142,6 @@ public: * Stores the RGB values to determine the light color */ -//#define MAX_LIGHTS 65536 -//extern entity_t *lights[MAX_LIGHTS]; - const std::vector& GetLights(); const entdict_t *FindEntDictWithKeyPair(const std::string &key, const std::string &value); diff --git a/light/entities.cc b/light/entities.cc index 5eea413a..965d41d0 100644 --- a/light/entities.cc +++ b/light/entities.cc @@ -159,19 +159,6 @@ SetupSpotlights(void) } } -/* helper function */ -static void -scan_vec3(vec3_t dest, const char *buf, const char *name) -{ - int i; - double vec[3] = { 0.0, 0.0, 0.0 }; - - if (sscanf(buf, "%lf %lf %lf", &vec[0], &vec[1], &vec[2]) != 3) - logprint("WARNING: Not 3 values for %s\n", name); - for (i = 0; i < 3; ++i) - dest[i] = vec[i]; -} - void vec_from_mangle(vec3_t v, const vec3_t m) {