Mercurial > kallithea
changeset 8571:95ba2e5893f9
changeset: drop unused anchor_url
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Tue, 16 Jun 2020 22:45:02 +0200 |
parents | 3a12df6cbf30 |
children | 0617a88e0daa |
files | kallithea/controllers/changeset.py kallithea/controllers/files.py |
diffstat | 2 files changed, 1 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/kallithea/controllers/changeset.py Thu Jun 11 21:15:07 2020 +0200 +++ b/kallithea/controllers/changeset.py Tue Jun 16 22:45:02 2020 +0200 @@ -59,11 +59,6 @@ params[k] += GET.getall(k) -def anchor_url(revision, path, GET): - fid = h.FID(revision, path) - return h.url.current(anchor=fid, **dict(GET)) - - def get_ignore_ws(fid, GET): ig_ws_global = GET.get('ignorews') ig_ws = [k for k in GET.getall(fid) if k.startswith('WS')] @@ -292,7 +287,6 @@ def _index(self, revision, method): c.pull_request = None - c.anchor_url = anchor_url c.ignorews_url = _ignorews_url c.context_url = _context_url c.fulldiff = request.GET.get('fulldiff') # for reporting number of changed files
--- a/kallithea/controllers/files.py Thu Jun 11 21:15:07 2020 +0200 +++ b/kallithea/controllers/files.py Tue Jun 16 22:45:02 2020 +0200 @@ -39,7 +39,7 @@ from webob.exc import HTTPFound, HTTPNotFound from kallithea.config.routing import url -from kallithea.controllers.changeset import _context_url, _ignorews_url, anchor_url, get_ignore_ws, get_line_ctx +from kallithea.controllers.changeset import _context_url, _ignorews_url, get_ignore_ws, get_line_ctx from kallithea.lib import diffs from kallithea.lib import helpers as h from kallithea.lib.auth import HasRepoPermissionLevelDecorator, LoginRequired @@ -567,7 +567,6 @@ c.f_path = f_path c.big_diff = False fulldiff = request.GET.get('fulldiff') - c.anchor_url = anchor_url c.ignorews_url = _ignorews_url c.context_url = _context_url c.changes = OrderedDict()