summaryrefslogtreecommitdiff
path: root/app/helpers/projects_helper.rb
diff options
context:
space:
mode:
authorMarkus Koller <markus-koller@gmx.ch>2016-12-03 16:59:24 +0100
committerMarkus Koller <markus-koller@gmx.ch>2016-12-21 16:36:53 +0100
commitb8d8fd70d53a90fba6631d9cce573fcfdc24a270 (patch)
treed10b17329009b5d46521e033f4dcdc98bd84b697 /app/helpers/projects_helper.rb
parentd5c49779125f70c49ff8b160355d4999d27091ee (diff)
downloadgitlab-ce-b8d8fd70d53a90fba6631d9cce573fcfdc24a270.tar.gz
Remove unused ProjectsHelper#round_commit_count
Diffstat (limited to 'app/helpers/projects_helper.rb')
-rw-r--r--app/helpers/projects_helper.rb14
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