From c479488fd73d8d4d926f783fc4116c211ff1cc25 Mon Sep 17 00:00:00 2001 From: Andrew James Date: Fri, 8 Jul 2022 16:36:54 +1000 Subject: [PATCH] Remove unnecessary assert (#4911) --- Source/lighting.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/Source/lighting.h b/Source/lighting.h index 9f9a52a57..8a6d3f76a 100644 --- a/Source/lighting.h +++ b/Source/lighting.h @@ -140,8 +140,6 @@ constexpr int MaxCrawlRadius = 18; template auto Crawl(unsigned radius, F function) -> invoke_result_t { - assert(radius <= MaxCrawlRadius); - if (radius == 0) return function(Displacement { 0, 0 });