summaryrefslogtreecommitdiff
path: root/app/helpers
diff options
context:
space:
mode:
authorJohn Cai <jcai@gitlab.com>2019-07-02 10:48:13 -0700
committerJohn Cai <jcai@gitlab.com>2019-07-02 17:07:33 -0700
commit2ceffce190165321a1818801e245456870c4708a (patch)
treec9ed1afe9b18c24f56bc92d2efcfe7abe3c745d2 /app/helpers
parentc6861b189b7faaf385bd397fd41ba93ed5649f25 (diff)
downloadgitlab-ce-2ceffce190165321a1818801e245456870c4708a.tar.gz
Deprecate diverging commit count with max parameterjc-deprecate-diverging-count-with-max
In 12.0, we turned the feature flag on that effectively turned off the --max-count flag for the count diverging commits call. Since we have commit graphs turned on, this did not affect preformance negatively. Thus, we want to deprecate the call that passes --max-count
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/branches_helper.rb8
1 files changed, 0 insertions, 8 deletions
diff --git a/app/helpers/branches_helper.rb b/app/helpers/branches_helper.rb
index eadf48205fc..c759882d7f8 100644
--- a/app/helpers/branches_helper.rb
+++ b/app/helpers/branches_helper.rb
@@ -8,12 +8,4 @@ module BranchesHelper
def protected_branch?(project, branch)
ProtectedBranch.protected?(project, branch.name)
end
-
- def diverging_count_label(count)
- if count >= Repository::MAX_DIVERGING_COUNT
- "#{Repository::MAX_DIVERGING_COUNT - 1}+"
- else
- count.to_s
- end
- end
end