diff options
author | Markus Koller <markus-koller@gmx.ch> | 2016-12-03 16:59:24 +0100 |
---|---|---|
committer | Markus Koller <markus-koller@gmx.ch> | 2016-12-21 16:36:53 +0100 |
commit | b8d8fd70d53a90fba6631d9cce573fcfdc24a270 (patch) | |
tree | d10b17329009b5d46521e033f4dcdc98bd84b697 /app/helpers | |
parent | d5c49779125f70c49ff8b160355d4999d27091ee (diff) | |
download | gitlab-ce-b8d8fd70d53a90fba6631d9cce573fcfdc24a270.tar.gz |
Remove unused ProjectsHelper#round_commit_count
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/projects_helper.rb | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/app/helpers/projects_helper.rb b/app/helpers/projects_helper.rb index d2177f683a1..9c9e38c4ed7 100644 --- a/app/helpers/projects_helper.rb +++ b/app/helpers/projects_helper.rb @@ -396,20 +396,6 @@ module ProjectsHelper [@project.path_with_namespace, sha, "readme"].join('-') end - def round_commit_count(project) - count = project.commit_count - - if count > 10000 - '10000+' - elsif count > 5000 - '5000+' - elsif count > 1000 - '1000+' - else - count - end - end - def current_ref @ref || @repository.try(:root_ref) end |