Commit 63456cf7 authored by Mehdi Lahmam's avatar Mehdi Lahmam

Remove unused `User#projects_limit_percent`

Its last usage has been removed at 87ffd676.
parent c186a887
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment