Remove unused ProjectsHelper#round_commit_count

This commit is contained in:
Markus Koller 2016-12-03 16:59:24 +01:00
parent d5c4977912
commit b8d8fd70d5
No known key found for this signature in database
GPG Key ID: A2B74A05A7A2B7B7
1 changed files with 0 additions and 14 deletions

View File

@ -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