This property is not used anymore, the last reference was removed
in 17726d7 (views: Move and refactor patch-forms).
Computing it may execute an unnecessary count query.

Signed-off-by: Franciszek Stachura <[email protected]>
---
 patchwork/paginator.py | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/patchwork/paginator.py b/patchwork/paginator.py
index 1b7bd914..6005f401 100644
--- a/patchwork/paginator.py
+++ b/patchwork/paginator.py
@@ -90,7 +90,3 @@ class Paginator(paginator.Paginator):
             # prevent e.g. 1 2 ... 5 6 7 ... 8 9
             if self.trailing_set[0] != self.adjacent_set[-1] + 1:
                 self.show_trailing_ellipsis = True
-
-        self.long_page = (
-            len(self.current_page.object_list) >= LONG_PAGE_THRESHOLD
-        )
-- 
2.55.0

_______________________________________________
Patchwork mailing list
[email protected]
https://lists.ozlabs.org/listinfo/patchwork

Reply via email to