diff --git a/kallithea/config/routing.py b/kallithea/config/routing.py --- a/kallithea/config/routing.py +++ b/kallithea/config/routing.py @@ -367,9 +367,6 @@ def make_map(config): m.connect("my_account_watched", "/my_account/watched", action="my_account_watched", conditions=dict(method=["GET"])) - m.connect("my_account_pullrequests", "/my_account/pull_requests", - action="my_account_pullrequests", conditions=dict(method=["GET"])) - m.connect("my_account_perms", "/my_account/perms", action="my_account_perms", conditions=dict(method=["GET"])) diff --git a/kallithea/controllers/admin/my_account.py b/kallithea/controllers/admin/my_account.py --- a/kallithea/controllers/admin/my_account.py +++ b/kallithea/controllers/admin/my_account.py @@ -230,27 +230,6 @@ class MyAccountController(BaseController h.flash(_("Removed email from user"), category='success') return redirect(url('my_account_emails')) - def my_account_pullrequests(self): - c.active = 'pullrequests' - self.__load_data() - c.show_closed = request.GET.get('pr_show_closed') - - def _filter(pr): - s = sorted(pr, key=lambda o: o.created_on, reverse=True) - if not c.show_closed: - s = filter(lambda p: p.status != PullRequest.STATUS_CLOSED, s) - return s - - c.my_pull_requests = _filter(PullRequest.query()\ - .filter(PullRequest.user_id == - self.authuser.user_id)\ - .all()) - my_prs = [x.pull_request for x in PullRequestReviewers.query() - .filter(PullRequestReviewers.user_id == - self.authuser.user_id).all()] - c.participate_in_pull_requests = _filter(my_prs) - return render('admin/my_account/my_account.html') - def my_account_api_keys(self): c.active = 'api_keys' self.__load_data() diff --git a/kallithea/templates/admin/my_account/my_account.html b/kallithea/templates/admin/my_account/my_account.html --- a/kallithea/templates/admin/my_account/my_account.html +++ b/kallithea/templates/admin/my_account/my_account.html @@ -41,7 +41,6 @@