Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/helpers/graph_helper.rb')
-rw-r--r--app/helpers/graph_helper.rb13
1 files changed, 0 insertions, 13 deletions
diff --git a/app/helpers/graph_helper.rb b/app/helpers/graph_helper.rb
index ab72442857b..829e72d9055 100644
--- a/app/helpers/graph_helper.rb
+++ b/app/helpers/graph_helper.rb
@@ -4,12 +4,6 @@ module GraphHelper
def refs(repo, commit)
refs = [commit.ref_names(repo).join(' ')]
- # append note count
- unless Feature.enabled?(:disable_network_graph_notes_count, @project, type: :experiment)
- notes_count = @graph.notes[commit.id]
- refs << "[#{pluralize(notes_count, 'note')}]" if notes_count > 0
- end
-
refs.join
end
@@ -18,13 +12,6 @@ module GraphHelper
ids.zip(parent_spaces)
end
- def success_ratio(counts)
- return 100 if counts[:failed] == 0
-
- ratio = (counts[:success].to_f / (counts[:success] + counts[:failed])) * 100
- ratio.to_i
- end
-
def should_render_dora_charts
false
end