changeset 797:31aff629ed47 pytest2

backrefs: remove some unused code
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Mon, 29 Aug 2011 15:38:52 +0200
parents a24b6f389ab1
children 468607d20932
files MoinMoin/apps/frontend/views.py
diffstat 1 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/apps/frontend/views.py	Mon Aug 29 15:31:00 2011 +0200
+++ b/MoinMoin/apps/frontend/views.py	Mon Aug 29 15:38:52 2011 +0200
@@ -643,7 +643,7 @@
     :type item_name: unicode
     :returns: a page with all the items which link or transclude item_name
     """
-    refs_here = _backrefs(flaskg.storage.iteritems(), item_name)
+    refs_here = _backrefs(item_name)
     return render_template('item_link_list.html',
                            item_name=item_name,
                            headline=_(u'Refers Here'),
@@ -651,12 +651,10 @@
                           )
 
 
-def _backrefs(items, item_name):
+def _backrefs(item_name):
     """
     Returns a list with all names of items which ref item_name
 
-    :param items: all the items
-    :type items: iteratable sequence
     :param item_name: the name of the item transcluded or linked
     :type item_name: unicode
     :returns: the list of all items which ref item_name