Cleanup: DRW: Remove unused legacy function

This commit is contained in:
Clément Foucault
2024-04-22 23:22:56 +02:00
parent 2babe2d678
commit 8d740b6ea3
2 changed files with 0 additions and 13 deletions

View File

@@ -228,16 +228,6 @@ void View::frustum_culling_sphere_calc(int view_id)
}
}
void View::disable(IndexRange range)
{
/* Set bounding sphere to -1.0f radius will bypass the culling test and treat every instance as
* invisible. */
range = IndexRange(view_len_).intersect(range);
for (auto view_id : range) {
reinterpret_cast<BoundSphere *>(&culling_[view_id].bound_sphere)->radius = -1.0f;
}
}
void View::bind()
{
if (dirty_ && !procedural_) {

View File

@@ -73,9 +73,6 @@ class View {
/* For compatibility with old system. Will be removed at some point. */
void sync(const DRWView *view);
/** Disable a range in the multi-view array. Disabled view will not produce any instances. */
void disable(IndexRange range);
/** Enable or disable every visibility test (frustum culling, HiZ culling). */
void visibility_test(bool enable)
{