From c186a88770d0453a6bc124f8ab6dabb7389c2fca Mon Sep 17 00:00:00 2001 From: Mehdi Lahmam Date: Fri, 18 Aug 2017 01:20:51 +0200 Subject: Remove `User#projects_sorted_by_activity` Its last usage has been removed at https://gitlab.com/mehlah/gitlab-ce/commit/9df6f7bfad#e6ff2c1091173fd03646752d4e30891f66d33db3_46_48 The method can still be useful but should be renamed `authorized_projects_sorted_by_activity` for better clarity. --- app/models/user.rb | 4 ---- 1 file changed, 4 deletions(-) (limited to 'app/models/user.rb') diff --git a/app/models/user.rb b/app/models/user.rb index 02c3ab6654b..757eba047d8 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -664,10 +664,6 @@ class User < ActiveRecord::Base end end - def projects_sorted_by_activity - authorized_projects.sorted_by_activity - end - def several_namespaces? owned_groups.any? || masters_groups.any? end -- cgit v1.2.1