diff options
author | John Cai <jcai@gitlab.com> | 2019-07-02 20:48:13 +0300 |
---|---|---|
committer | John Cai <jcai@gitlab.com> | 2019-07-03 03:07:33 +0300 |
commit | 2ceffce190165321a1818801e245456870c4708a (patch) | |
tree | c9ed1afe9b18c24f56bc92d2efcfe7abe3c745d2 /app/helpers | |
parent | c6861b189b7faaf385bd397fd41ba93ed5649f25 (diff) |
Deprecate diverging commit count with max parameter
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.rb | 8 |
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 |