Clipper: remove ForceDisplayRangeByIndices/ForceDisplayRangeByPositions functions until we find a need for them, since #3841 is now solved automatically.

This commit is contained in:
ocornut
2021-11-04 13:55:37 +01:00
parent 93cccd27f6
commit 6a7e2c74fb
3 changed files with 1 additions and 23 deletions

View File

@ -2405,24 +2405,6 @@ void ImGuiListClipper::End()
data->ListClipper->TempData = data;
}
void ImGuiListClipper::ForceDisplayRangeByIndices(int item_min, int item_max)
{
ImGuiListClipperData* data = (ImGuiListClipperData*)TempData;
IM_ASSERT(DisplayStart < 0); // Only allowed after Begin() and if there has not been a specified range yet.
IM_ASSERT(item_min <= item_max);
if (item_min < item_max)
data->Ranges.push_back(ImGuiListClipperRange::FromIndices(item_min, item_max));
}
void ImGuiListClipper::ForceDisplayRangeByPositions(float y_min, float y_max)
{
ImGuiListClipperData* data = (ImGuiListClipperData*)TempData;
IM_ASSERT(DisplayStart < 0); // Only allowed after Begin() and if there has not been a specified range yet.
IM_ASSERT(y_min <= y_max);
if (y_min < y_max)
data->Ranges.push_back(ImGuiListClipperRange::FromPositions(y_min, y_max, 0, 0));
}
bool ImGuiListClipper::Step()
{
ImGuiContext& g = *GImGui;