From 73ab67a425a1a3f6770360ea9a8755005f20f569 Mon Sep 17 00:00:00 2001
From: "J.-S. Caux" <J.S.Caux@uva.nl>
Date: Mon, 21 Jun 2021 17:23:57 +0200
Subject: [PATCH] Remove deprecated filters

---
 .../scipost/templatetags/scipost_extras.py       | 16 ----------------
 1 file changed, 16 deletions(-)

diff --git a/scipost_django/scipost/templatetags/scipost_extras.py b/scipost_django/scipost/templatetags/scipost_extras.py
index 1564e91f0..f5ab4569a 100644
--- a/scipost_django/scipost/templatetags/scipost_extras.py
+++ b/scipost_django/scipost/templatetags/scipost_extras.py
@@ -67,19 +67,3 @@ def is_in_group(user, group_name):
 def associated_contributors(draft):
     return Contributor.objects.filter(
         user__last_name__icontains=draft.last_name).order_by('user__last_name')
-
-
-def is_modulo(counter, total, modulo):
-    q = max(1, int(total / modulo))
-    counter -= 1
-    return (counter % q) == (q - 1)
-
-
-@register.filter(name='is_modulo_one_half')
-def is_modulo_one_half(counter, total):
-    return is_modulo(counter, total, 2)
-
-
-@register.filter(name='is_modulo_one_third')
-def is_modulo_one_third(counter, total):
-    return is_modulo(counter, total, 3)
-- 
GitLab