Remove _add_truncated_range

This commit is contained in:
Ev-1 committed 2023-04-28 23:37:09 +02:00
1 parent 74cf9519a8
commit 7cf3acca6b
1 file changed
-5
@@ -21,8 +21,3 @@ class NavBarRange:
mid_select_items[0] = 0
mid_select_items[-1] = self.num_items - 1
return iter(mid_select_items)
def _make_truncated_range(self, start, end):
actual_start = max(start, 0)
actual_end = min(self.max_iter_length, end)
return range(actual_start, actual_end)