diff options
author | Mehdi Lahmam <mehdi@lahmam.com> | 2017-08-18 01:20:51 +0200 |
---|---|---|
committer | Mehdi Lahmam <mehdi@lahmam.com> | 2017-08-20 21:31:40 +0200 |
commit | c186a88770d0453a6bc124f8ab6dabb7389c2fca (patch) | |
tree | c20a8b7b95d1b01fd0ec4bf9ba840b19a1116254 /app/models/user.rb | |
parent | fbaae9ff5ccae72d24a449100c05d3353526197b (diff) | |
download | gitlab-ce-c186a88770d0453a6bc124f8ab6dabb7389c2fca.tar.gz |
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.
Diffstat (limited to 'app/models/user.rb')
-rw-r--r-- | app/models/user.rb | 4 |
1 files changed, 0 insertions, 4 deletions
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 |