summaryrefslogtreecommitdiff
path: root/app/helpers/projects_helper.rb
diff options
context:
space:
mode:
authorValery Sizov <vsv2711@gmail.com>2015-07-19 22:49:21 +0300
committerValery Sizov <vsv2711@gmail.com>2015-07-19 22:49:21 +0300
commitebb6393d0eda26db10da85f0a57c3d707b4de558 (patch)
treed838339de1cc27cdc4fe6ccf7009f035475938f3 /app/helpers/projects_helper.rb
parent55b4f31d9274ad113386eb9ea004d7b4f1073c14 (diff)
downloadgitlab-ce-update_for_stable.tar.gz
Revert "Merge branch 'cache-improvement' into '7-13-stable' "update_for_stable
This reverts commit 94c2516afc7ad8854844c05001f4a390d0bd8724, reversing changes made to ae44e5ec064aaa9f5063732dc7bb6ee751a80ce2.
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 f61baf00525..78f24dbd7ef 100644
--- a/app/helpers/projects_helper.rb
+++ b/app/helpers/projects_helper.rb
@@ -276,18 +276,4 @@ module ProjectsHelper
def readme_cache_key
[@project.id, @project.commit.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
end