diff options
author | Mehdi Lahmam <mehdi@lahmam.com> | 2017-08-18 01:35:25 +0200 |
---|---|---|
committer | Mehdi Lahmam <mehdi@lahmam.com> | 2017-08-20 21:31:40 +0200 |
commit | 63456cf7dc3fd28f1f308a4eab82695f944b6271 (patch) | |
tree | b5f0c6c5ffa97c653c42455586f2f5804db9c104 | |
parent | c186a88770d0453a6bc124f8ab6dabb7389c2fca (diff) | |
download | gitlab-ce-63456cf7dc3fd28f1f308a4eab82695f944b6271.tar.gz |
Remove unused `User#projects_limit_percent`
Its last usage has been removed at 87ffd67617.
-rw-r--r-- | app/models/user.rb | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/app/models/user.rb b/app/models/user.rb index 757eba047d8..aee3c4ef0ca 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -642,11 +642,6 @@ class User < ActiveRecord::Base @personal_projects_count ||= personal_projects.count end - def projects_limit_percent - return 100 if projects_limit.zero? - (personal_projects.count.to_f / projects_limit) * 100 - end - def recent_push(project_ids = nil) # Get push events not earlier than 2 hours ago events = recent_events.code_push.where("created_at > ?", Time.now - 2.hours) |