diff --git a/kfet/templates/kfet/account_create_autocomplete.html b/kfet/templates/kfet/account_create_autocomplete.html
deleted file mode 100644
index 2f04d461..00000000
--- a/kfet/templates/kfet/account_create_autocomplete.html
+++ /dev/null
@@ -1,50 +0,0 @@
-{% load kfet_tags %}
-
-
- -
-
- Créer un compte
-
-
- {% if kfet %}
- - Comptes existants
- {% for user in kfet %}
- - {{ user.account_kfet.account }} [{{ user|highlight_user:q }}]
- {% endfor %}
- {% endif %}
- {% if users_cof %}
- - Membres du COF
- {% for user in users_cof %}
- -
-
- {{ user|highlight_user:q }}
-
-
- {% endfor %}
- {% endif %}
- {% if users_notcof %}
- - Non-membres du COF
- {% for user in users_notcof %}
- -
-
- {{ user|highlight_user:q }}
-
-
- {% endfor %}
- {% endif %}
- {% if clippers %}
- - Utilisateurs clipper
- {% for clipper in clippers %}
- -
-
- {{ clipper|highlight_clipper:q }}
-
-
- {% endfor %}
- {% endif %}
- {% if not q %}
- - Pas de recherche, pas de résultats !
- {% elif not options %}
- - Aucune correspondance trouvée :-(
- {% endif %}
-
diff --git a/kfet/templates/kfet/account_search_autocomplete.html b/kfet/templates/kfet/account_search_autocomplete.html
deleted file mode 100644
index e18eb1eb..00000000
--- a/kfet/templates/kfet/account_search_autocomplete.html
+++ /dev/null
@@ -1,14 +0,0 @@
-{% load kfet_tags %}
-
-
- {% if accounts %}
- {% for trigramme, user in accounts %}
- - {{ user|highlight_text:q }} ({{ trigramme }})
- {% endfor %}
- {% elif not q %}
- - Pas de recherche, pas de résultats !
- {% else %}
- - Aucune correspondance trouvée :-(
- {% endif %}
-
-
diff --git a/kfet/templatetags/kfet_tags.py b/kfet/templatetags/kfet_tags.py
index 4c26dd17..a31e9448 100644
--- a/kfet/templatetags/kfet_tags.py
+++ b/kfet/templatetags/kfet_tags.py
@@ -11,32 +11,6 @@ register = template.Library()
register.filter("ukf", to_ukf)
-@register.filter()
-def highlight_text(text, q):
- q2 = "|".join(re.escape(word) for word in q.split())
- pattern = re.compile(r"(?P%s)" % q2, re.IGNORECASE)
- regex = r"\g"
- return mark_safe(re.sub(pattern, regex, escape(text)))
-
-
-@register.filter(is_safe=True)
-def highlight_user(user, q):
- if user.first_name and user.last_name:
- text = "%s %s (%s)" % (user.first_name, user.last_name, user.username)
- else:
- text = user.username
- return highlight_text(text, q)
-
-
-@register.filter(is_safe=True)
-def highlight_clipper(clipper, q):
- if clipper.fullname:
- text = "%s (%s)" % (clipper.fullname, clipper.clipper)
- else:
- text = clipper.clipper
- return highlight_text(text, q)
-
-
@register.filter()
def widget_type(field):
return field.field.widget.__class__.__name__