From d60d4b05fc6ec67db47a7db3307e71f2e3c07821 Mon Sep 17 00:00:00 2001 From: James R Date: Sun, 11 Sep 2022 16:59:25 -0700 Subject: [PATCH] Remove R_ThingVisibleWithinDist It's no longer used! --- src/r_things.c | 10 ---------- src/r_things.h | 3 --- 2 files changed, 13 deletions(-) diff --git a/src/r_things.c b/src/r_things.c index d7d2a12b5..c0e727fd9 100644 --- a/src/r_things.c +++ b/src/r_things.c @@ -3425,16 +3425,6 @@ boolean R_ThingWithinDist (mobj_t *thing, fixed_t limit_dist) return true; } -// For OpenGL, TODO: REMOVE!! -boolean R_ThingVisibleWithinDist (mobj_t *thing, - fixed_t limit_dist) -{ - if (! R_ThingVisible(thing)) - return false; - - return R_ThingWithinDist(thing, limit_dist); -} - /* Check if precipitation may be drawn from our current view. */ boolean R_PrecipThingVisible (precipmobj_t *precipthing, fixed_t limit_dist) diff --git a/src/r_things.h b/src/r_things.h index c6ad2a0e0..b89645fff 100644 --- a/src/r_things.h +++ b/src/r_things.h @@ -74,9 +74,6 @@ boolean R_ThingVisible (mobj_t *thing); boolean R_ThingWithinDist (mobj_t *thing, fixed_t draw_dist); -boolean R_ThingVisibleWithinDist (mobj_t *thing, - fixed_t draw_dist); - boolean R_PrecipThingVisible (precipmobj_t *precipthing, fixed_t precip_draw_dist);