From 7db17e58bdba983295947d17717eef72d0b859f9 Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Thu, 16 Oct 2014 00:36:02 -0400 Subject: [PATCH] Remove unused document indexing utils module --- mayan/apps/document_indexing/utils.py | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 mayan/apps/document_indexing/utils.py diff --git a/mayan/apps/document_indexing/utils.py b/mayan/apps/document_indexing/utils.py deleted file mode 100644 index 932f8b2a48..0000000000 --- a/mayan/apps/document_indexing/utils.py +++ /dev/null @@ -1,25 +0,0 @@ -from __future__ import absolute_import - -from django.utils.translation import ugettext_lazy as _ - -from .api import get_breadcrumbs - - -def get_document_indexing_subtemplate(document): - """ - Return all the settings to render a subtemplate containing a - list of index instances where a document may be found - """ - object_list = [] - - for index_instance in document.indexinstance_set.all(): - object_list.append(get_breadcrumbs(index_instance, single_link=True, include_count=True)) - - return { - 'name': 'main/generic_list_subtemplate.html', - 'context': { - 'title': _(u'Document indexes'), - 'object_list': object_list, - 'hide_link': True - } - }