# HG changeset patch # User Mads Kiilerich # Date 2020-06-16 22:45:02 # Node ID 95ba2e5893f9c9933b0b930f4b131489e4976ca3 # Parent 3a12df6cbf3056831e839d734184c76b1e8331c4 changeset: drop unused anchor_url diff --git a/kallithea/controllers/changeset.py b/kallithea/controllers/changeset.py --- a/kallithea/controllers/changeset.py +++ b/kallithea/controllers/changeset.py @@ -59,11 +59,6 @@ def _update_with_GET(params, GET): 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 @@ class ChangesetController(BaseRepoContro 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 diff --git a/kallithea/controllers/files.py b/kallithea/controllers/files.py --- a/kallithea/controllers/files.py +++ b/kallithea/controllers/files.py @@ -39,7 +39,7 @@ from tg.i18n import ugettext as _ 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 @@ class FilesController(BaseRepoController 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()