From 4e73d9b1966f78f555997511c3b135d09a81cb2c Mon Sep 17 00:00:00 2001 From: Jonathan Date: Thu, 23 Jun 2022 23:45:55 -0400 Subject: [PATCH] remove unused struct --- light/bounce.cc | 6 ------ light/entities.cc | 8 ++++---- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/light/bounce.cc b/light/bounce.cc index 38880f1a..4f788e8c 100644 --- a/light/bounce.cc +++ b/light/bounce.cc @@ -172,12 +172,6 @@ const std::vector &BounceLightsForFaceNum(int facenum) return empty; } -struct make_bounce_lights_args_t -{ - const mbsp_t *bsp; - const settings::worldspawn_keys &cfg; -}; - static void MakeBounceLightsThread(const settings::worldspawn_keys &cfg, const mbsp_t *bsp, const mface_t &face) { if (!Face_ShouldBounce(bsp, &face)) { diff --git a/light/entities.cc b/light/entities.cc index 16a901fa..35b2c5fd 100644 --- a/light/entities.cc +++ b/light/entities.cc @@ -978,15 +978,15 @@ inline qvec3d UniformPointOnSphere(vec_t u1, vec_t u2) aabb3d EstimateVisibleBoundsAtPoint(const qvec3d &point) { - const int N = 32; - const int N2 = N * N; + constexpr size_t N = 32; + constexpr size_t N2 = N * N; raystream_intersection_t rs{N2}; aabb3d bounds = point; - for (int x = 0; x < N; x++) { - for (int y = 0; y < N; y++) { + for (size_t x = 0; x < N; x++) { + for (size_t y = 0; y < N; y++) { const vec_t u1 = static_cast(x) / static_cast(N - 1); const vec_t u2 = static_cast(y) / static_cast(N - 1);